This commit is contained in:
2025-08-31 00:29:53 +02:00
parent 191bd84573
commit 29611b15ca
87 changed files with 2451 additions and 0 deletions

29
nginx/default.nginx Normal file
View File

@@ -0,0 +1,29 @@
events {
worker_connections 1024;
}
http {
client_max_body_size 100M;
server {
listen 80;
location /static/ {
alias /static/;
autoindex on;
}
location /serve_media/ {
alias /media/;
autoindex on;
}
location / {
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://app:8000;
}
}
}

25
nginx/dev.nginx Normal file
View File

@@ -0,0 +1,25 @@
events {
worker_connections 1024;
}
http {
client_max_body_size 100M;
server {
listen 80;
location /serve_media/ {
alias /media/;
autoindex on;
}
location / {
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://app:8000;
}
}
}