server {
listen 80;
server_name _;
# 静的ファイル (CSS/JS/画像)
location /static/ {
alias /home/ssm-user/condition-monitoring/static/;
}
# それ以外はすべて Django へ
location / {
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:8000;
}
}
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme