fix for duplicate files being created.

This commit is contained in:
2020-11-03 08:36:57 +00:00
parent d9fede5b92
commit 31a7d8f45a
11 changed files with 112 additions and 394 deletions

View File

@@ -105,6 +105,8 @@ STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
]
STATIC_ROOT = os.getenv('STATIC_ROOT', None)
LOGIN_REDIRECT_URL = "/comic/"
LOGIN_URL = "/login/"

View File

@@ -0,0 +1,20 @@
upstream cbwebreader_django {
server cbwebreader:8000;
}
server {
listen 80;
location / {
proxy_pass http://cbwebreader_django;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
location /static/ {
alias /static/;
}
}