mirror of
https://github.com/encounter/decomp.me.git
synced 2026-07-10 03:18:49 -07:00
Migration remediation 3 (#1587)
* Add letsencrypt to gitignore * Set 5M upload limit in nginx * Django is behind a reverse proxy so trust x-forwarded-proto * black
This commit is contained in:
@@ -190,6 +190,8 @@ LOGGING = {
|
||||
},
|
||||
}
|
||||
|
||||
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
||||
|
||||
SECURE_SSL_REDIRECT = env("SECURE_SSL_REDIRECT")
|
||||
SECURE_HSTS_SECONDS = env("SECURE_HSTS_SECONDS")
|
||||
SECURE_HSTS_INCLUDE_SUBDOMAINS = env("SECURE_HSTS_INCLUDE_SUBDOMAINS")
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
**/*
|
||||
!.gitignore
|
||||
@@ -16,6 +16,8 @@ server {
|
||||
listen 443 ssl http2;
|
||||
server_name decomp.me www.decomp.me;
|
||||
|
||||
client_max_body_size 5M;
|
||||
|
||||
root /var/www/decomp.me;
|
||||
index index.html;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user