Spotter-VM/sambro/etc/nginx/sites-available/sambro

26 lines
619 B
Plaintext

server {
listen 8099 ssl http2;
listen [::]:8099 ssl http2;
access_log /var/log/nginx/sambro.access.log;
error_log /var/log/nginx/sambro.error.log;
location / {
return 301 https://$http_host:8099/eden/;
}
location /eden {
uwsgi_pass unix:///run/uwsgi/app/sambro/socket;
uwsgi_read_timeout 120s;
uwsgi_send_timeout 120s;
include uwsgi_params;
uwsgi_param UWSGI_SCHEME $scheme;
uwsgi_param SERVER_SOFTWARE nginx/$nginx_version;
}
location ~* /eden/static {
root /srv/sambro/applications;
expires max;
}
}