open_file_cache_valid 30s;
open_log_file_cache max=1000 inactive=20s min_uses=2 valid=1m;
proxy_cache_use_stale updating;
+ proxy_temp_path /run/shm/cache/nginx/proxy_temp 1 2;
reset_timedout_connection on;
send_timeout 60;
# NOTE: if the client stops reading data, free up the stale client connection after this much time.
}
include /etc/nginx/site.d/*/http.conf;
include /etc/nginx/site.d/*/server.conf;
+ server {
+ listen 80 default_server;
+ server_name _;
+ return 302 $scheme://heureux-cyclage.org$request_uri;
+ }
+ server {
+ listen 443 default_server;
+ server_name _;
+ include /etc/nginx/conf.d/ssl.conf;
+ ssl_certificate /etc/nginx/x509.d/cyclo-www-tls/crt.pem;
+ ssl_certificate_key /etc/nginx/x509.d/cyclo-www-tls/key.pem;
+ return 302 $scheme://cyclocoop.org$request_uri;
+ }
}
pid /run/nginx.pid;
user www-data;