chibisafe_ynh/conf/nginx.conf

30 lines
861 B
Nginx Configuration File
Raw Permalink Normal View History

2024-11-07 04:37:50 -05:00
client_max_body_size 1024M;
2014-10-20 12:55:53 -04:00
2024-11-07 04:37:50 -05:00
location /uploads/ {
alias __INSTALL_DIR__/uploads/;
try_files $uri $uri/ =404;
}
2024-11-07 04:37:50 -05:00
location /api/ {
proxy_pass http://127.0.0.1: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;
}
2017-06-02 11:49:54 -04:00
2024-11-07 04:37:50 -05:00
location /docs {
proxy_pass http://127.0.0.1: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;
}
2014-10-20 12:55:53 -04:00
2024-11-07 04:37:50 -05:00
location / {
proxy_pass http://127.0.0.1:8001;
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;
2024-11-15 18:49:34 -05:00
}