diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf index 112614197c1..c1c718107cf 100644 --- a/config/nginx.sample.conf +++ b/config/nginx.sample.conf @@ -34,6 +34,18 @@ server { gzip_comp_level 5; gzip_types application/json text/css application/x-javascript application/javascript; + # Uncomment and configure this section for HTTPS support + # NOTE: Put your ssl cert in your main nginx config directory (/etc/nginx) + # + # rewrite ^/(.*) https://enter.your.web.hostname.here/$1 permanent; + # + # listen 443 ssl; + # ssl_certificate your-hostname-cert.pem; + # ssl_certificate_key your-hostname-cert.key; + # ssl_protocols TLSv1 TLSv1.1 TLSv1.2; + # ssl_ciphers HIGH:!aNULL:!MD5; + # + server_name enter.your.web.hostname.here; server_tokens off; @@ -87,7 +99,7 @@ server { expires 1y; add_header Cache-Control public; } - + # cache emojis location ~ /_?emoji/ { expires 1y;