aboutsummaryrefslogtreecommitdiff
path: root/instance
diff options
context:
space:
mode:
Diffstat (limited to 'instance')
-rw-r--r--instance/config.py22
-rw-r--r--instance/sqlite.py22
2 files changed, 22 insertions, 22 deletions
diff --git a/instance/config.py b/instance/config.py
index 577c1659..eae58a53 100644
--- a/instance/config.py
+++ b/instance/config.py
@@ -28,19 +28,19 @@ SQLALCHEMY_DATABASE_URI = "postgresql://{user}:{password}@{host}:{port}/{name}".
# Security
CONTENT_SECURITY_POLICY = {
- 'default-src': '\'self\'',
- 'img-src': '*',
- 'media-src': [
- 'youtube.com',
+ "default-src": "'self'",
+ "img-src": "*",
+ "media-src": [
+ "youtube.com",
],
- 'script-src': [
- '\'self\'',
- '\'unsafe-inline\'',
+ "script-src": [
+ "'self'",
+ "'unsafe-inline'",
+ ],
+ "style-src": [
+ "'self'",
+ "'unsafe-inline'",
],
- 'style-src': [
- '\'self\'',
- '\'unsafe-inline\'',
- ]
}
# Crawler
CRAWLING_METHOD = "default"
diff --git a/instance/sqlite.py b/instance/sqlite.py
index 8c2b613c..9d171b89 100644
--- a/instance/sqlite.py
+++ b/instance/sqlite.py
@@ -19,19 +19,19 @@ SQLALCHEMY_DATABASE_URI = "sqlite:///newspipe.db"
# Security
CONTENT_SECURITY_POLICY = {
- 'default-src': '\'self\'',
- 'img-src': '* data:',
- 'media-src': [
- 'youtube.com',
+ "default-src": "'self'",
+ "img-src": "* data:",
+ "media-src": [
+ "youtube.com",
],
- 'script-src': [
- '\'self\'',
- '\'unsafe-inline\'',
+ "script-src": [
+ "'self'",
+ "'unsafe-inline'",
+ ],
+ "style-src": [
+ "'self'",
+ "'unsafe-inline'",
],
- 'style-src': [
- '\'self\'',
- '\'unsafe-inline\'',
- ]
}
# Crawler
bgstack15