almost finish migrate new circumstances

This commit is contained in:
2025-08-24 19:44:36 +09:00
parent 1ba305641e
commit fe5a044c82
67 changed files with 1194889 additions and 467 deletions

View File

@ -40,10 +40,25 @@ http {
index index.html;
try_files $uri $uri/ /index.html;
}
# スーパーバイザー専用の静的ファイル
location /supervisor/ {
root /usr/share/nginx/html;
try_files $uri $uri/ =404;
}
# Django API プロキシ
location /api/ {
proxy_pass http://api:8000;
proxy_pass http://app:8000;
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;
}
# Django Admin プロキシ
location /admin/ {
proxy_pass http://app:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;