X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fnginx%2Fnginx.conf;h=ad979c3a479c892e89a6f5db78d11ccf91e48a80;hb=f20eac77687a8cb82a28c35ac8cfdd57bb9b972e;hp=1ebd203f7fab107f5360c7fa6cda1a5b7d09a2e6;hpb=a5a6e6329b52aff5811314e611b3f6122eb21e5b;p=lhc%2Fateliers.git diff --git a/etc/nginx/nginx.conf b/etc/nginx/nginx.conf index 1ebd203..ad979c3 100644 --- a/etc/nginx/nginx.conf +++ b/etc/nginx/nginx.conf @@ -60,12 +60,14 @@ http { include /etc/nginx/mime.types; keepalive_timeout 20; large_client_header_buffers 4 8k; + map_hash_bucket_size 128; open_file_cache max=200000 inactive=20s; open_file_cache_errors on; open_file_cache_min_uses 2; 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. @@ -99,6 +101,19 @@ http { } 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;