initialize supervisor...still has bugs

This commit is contained in:
hayano
2024-10-28 02:20:28 +00:00
parent 051916f9f6
commit 2913a435c1
10 changed files with 842 additions and 16 deletions

View File

@ -26,29 +26,33 @@ http {
#gzip on;
server {
listen 80;
server_name localhost;
listen 80;
server_name localhost;
# 静的ファイルの提供
location /static/ {
alias /app/static/;
alias /app/static/;
}
location /media/ {
alias /app/media/;
}
# スーパーバイザー Web アプリケーション
location / {
proxy_pass http://app:8000;
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
}
# Django API プロキシ
location /api/ {
proxy_pass http://api: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;
}
error_page 500 502 503 504 /50x.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
root /usr/share/nginx/html;
}
}
}