Files
fet2020/deployment/nginx.conf
2020-09-29 05:24:15 +00:00

28 lines
693 B
Nginx Configuration File

server {
listen 8080;
location /assets {
alias /app/static;
try_files $uri $uri/ =404;
}
location /fotos {
proxy_ssl_server_name on;
proxy_ssl_verify off;
proxy_pass http://flaskfetfotos:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
# proxy_set_header REMOTE-USER $http_REMOTE_USER;
# proxy_set_header X-Forwarded-User $http_REMOTE_USER;
# proxy_set_header x-forwarded-user $http_REMOTE_USER;
proxy_set_header Connection "upgrade";
}
location / {
include uwsgi_params;
uwsgi_pass unix:///tmp/uwsgi.sock;
}
}