conventionschedule-android/webstorage/server_deploy_config/bff-ws-http.conf

57 lines
1.2 KiB
Plaintext
Raw Normal View History

2018-10-11 04:07:41 +00:00
server {
listen 80;
listen [::]:80;
server_name bff-ws.adlerneves.com;
include /etc/nginx/snippets/acme.conf;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name bff-ws.adlerneves.com;
root /var/www/html;
client_max_body_size 100M;
location /static {
2018-10-11 04:36:18 +00:00
alias /var/www/bff-ws/static;
2018-12-20 04:44:47 +00:00
gzip on;
2018-10-11 04:36:18 +00:00
autoindex on;
}
location /media {
alias /var/www/bff-ws/media;
2018-12-20 04:44:47 +00:00
gzip on;
2018-10-11 04:36:18 +00:00
autoindex on;
2018-10-11 04:07:41 +00:00
}
location / {
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;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
2018-12-20 05:45:23 +00:00
2018-12-20 05:53:27 +00:00
gzip on;
sub_filter_last_modified on;
2018-10-11 04:07:41 +00:00
proxy_pass http://localhost:17943;
proxy_redirect off;
# Socket.IO Support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 1d;
proxy_send_timeout 1d;
}
include /etc/nginx/snippets/tlsgzip.conf;
}