1
0
Fork 0
forked from cisti/infra
infra/roles/stable/nginx/templates/default.j2

19 lines
389 B
Text
Raw Normal View History

2020-11-21 23:42:08 +01:00
# cache
2020-12-28 17:39:41 +01:00
proxy_cache_path /tmp levels=1:2 keys_zone=STATIC:10m inactive=24h max_size=10g use_temp_path=off;
2020-11-21 23:42:08 +01:00
# redirect all http traffic to https
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
# enable proxy websocket
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}