etc nginx sites_avaliable wiki.ourcanadian.ca.conf - ourcanadian/server-docs GitHub Wiki
Path /etc/nginx/sites-avaliable/wiki.ourcanadian.ca.conf
server {
listen [::]:80 ipv6only=off;
server_name wiki.ourcanadian.ca;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name wiki.ourcanadian.ca;
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:50m;
ssl_session_tickets off;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers *****************************;
ssl_prefer_server_ciphers on;
ssl_certificate /etc/nginx/ssl/wiki.ourcanadian.ca.crt;
ssl_certificate_key /etc/nginx/ssl/wiki.ourcanadian.ca.key;
ssl_trusted_certificate /etc/nginx/ssl/CA.crt;
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_next_upstream error timeout http_502 http_503 http_504;
}
}