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:
Mark Street
2025-06-08 16:01:56 +09:00
committed by GitHub
parent 5668b3c311
commit 12ce138296
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -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")
+2
View File
@@ -0,0 +1,2 @@
**/*
!.gitignore
+2
View File
@@ -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;