something updated

This commit is contained in:
hayano
2025-01-22 08:19:49 +00:00
parent 82fa3c2249
commit 43c89dec9a
6 changed files with 35 additions and 16 deletions

View File

@ -36,9 +36,22 @@ server {
}
location /static/ {
alias /app/static/;
expires 1h;
add_header Cache-Control "public, no-transform";
proxy_pass http://api:8000;
proxy_http_version 1.1;
proxy_set_header Host $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_set_header X-CSRFToken $http_x_csrf_token;
# タイムアウト設定
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
send_timeout 300;
# alias /app/static/;
# expires 1h;
# add_header Cache-Control "public, no-transform";
}
location = / {