48 lines
1.3 KiB
Nginx Configuration File
48 lines
1.3 KiB
Nginx Configuration File
|
|
upstream app_server_savage_lands.dvp {
|
||
|
|
|
||
|
|
# for UNIX domain socket setups
|
||
|
|
server unix:/tmp/gunicorn.savage_lands.dvp.sock fail_timeout=0;
|
||
|
|
|
||
|
|
# server 127.0.0.1:8079 fail_timeout=0;
|
||
|
|
}
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 80;
|
||
|
|
server_name .savage_lands.dvp
|
||
|
|
|
||
|
|
charset utf-8;
|
||
|
|
|
||
|
|
client_max_body_size 75M;
|
||
|
|
|
||
|
|
access_log /usr/local/var/www/savage_lands.dvp/logs/nginx/access.log;
|
||
|
|
error_log /usr/local/var/www/savage_lands.dvp/logs/nginx/error.log;
|
||
|
|
|
||
|
|
location /media {
|
||
|
|
alias /usr/local/var/www/savage_lands.dvp/public/media/dynamic;
|
||
|
|
}
|
||
|
|
|
||
|
|
location /static/debug_toolbar {
|
||
|
|
alias /Users/ronny/.virtualenvs/savage_lands/lib/python3.11/site-packages/debug_toolbar/static/debug_toolbar;
|
||
|
|
}
|
||
|
|
|
||
|
|
location /static {
|
||
|
|
alias /usr/local/var/www/savage_lands.dvp/public/media/static;
|
||
|
|
}
|
||
|
|
|
||
|
|
location / {
|
||
|
|
proxy_pass_header Server;
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_redirect off;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header X-Scheme $scheme;
|
||
|
|
proxy_connect_timeout 10;
|
||
|
|
proxy_read_timeout 10;
|
||
|
|
# proxy_pass http://127.0.0.1:8079/;
|
||
|
|
proxy_pass http://app_server_savage_lands.dvp;
|
||
|
|
}
|
||
|
|
|
||
|
|
error_page 500 502 503 504 /50x.html;
|
||
|
|
location = /50x.html {
|
||
|
|
root html;
|
||
|
|
}
|
||
|
|
}
|