mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
Node assets (#36)
* moved all static files to node_modules * updating Dockerfile * updating Dockerfile * updating Dockerfile * updating Dockerfile * fixed fontawesome * added psql client in case it's needed. * removed some debug stuff from scan_comics.py * fixed generete_directory to cover missing thumbnails
This commit is contained in:
@@ -41,7 +41,7 @@ INSTALLED_APPS = (
|
||||
'django_extensions',
|
||||
'imagekit',
|
||||
'django_boost',
|
||||
'sri'
|
||||
'sri',
|
||||
)
|
||||
|
||||
MIDDLEWARE = [
|
||||
@@ -107,7 +107,8 @@ USE_TZ = True
|
||||
STATIC_URL = "/static/"
|
||||
|
||||
STATICFILES_DIRS = [
|
||||
Path(BASE_DIR, "static")
|
||||
Path(BASE_DIR, "static"),
|
||||
Path(BASE_DIR, "node_modules")
|
||||
]
|
||||
|
||||
STATIC_ROOT = os.getenv('STATIC_ROOT', None)
|
||||
@@ -148,11 +149,11 @@ BOOTSTRAP4 = {
|
||||
"crossorigin": "anonymous",
|
||||
},
|
||||
}
|
||||
CSP_DEFAULT_SRC = ("'none'")
|
||||
CSP_STYLE_SRC = ("'self'", 'cdn.jsdelivr.net', 'cdn.datatables.net')
|
||||
CSP_DEFAULT_SRC = ("'none'",)
|
||||
CSP_STYLE_SRC = ("'self'", "'unsafe-inline'")
|
||||
CSP_IMG_SRC = ("'self'", "data:")
|
||||
CSP_FONT_SRC = ("'self'")
|
||||
CSP_SCRIPT_SRC = ("'self'", 'code.jquery.com', 'cdn.jsdelivr.net', 'cdn.datatables.net')
|
||||
CSP_CONNECT_SRC = ("'self'")
|
||||
CSP_FONT_SRC = ("'self'",)
|
||||
CSP_SCRIPT_SRC = ("'self'",)
|
||||
CSP_CONNECT_SRC = ("'self'",)
|
||||
CSP_INCLUDE_NONCE_IN = ['script-src']
|
||||
CSP_SCRIPT_SRC_ATTR = ("'self'", "'unsafe-inline'")
|
||||
CSP_SCRIPT_SRC_ATTR = ("'self'", "'unsafe-inline'")
|
||||
|
||||
Reference in New Issue
Block a user