Skip to content

Instantly share code, notes, and snippets.

@guidouil
Created October 15, 2015 14:42
Show Gist options
  • Save guidouil/42b42cc3b158e9617b0d to your computer and use it in GitHub Desktop.
Save guidouil/42b42cc3b158e9617b0d to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name jecmd.fr je-cmd.fr *.jecmd.fr *.je-cmd.fr qoderesto.com *.qoderesto.com qrr.fr *.qrr.fr jcmd.fr *.jcmd.fr;
rewrite ^ https://jecmd.fr$request_uri? permanent;
}
server {
listen 443;
server_name jecmd.fr *.jecmd.fr;
ssl on;
ssl_certificate /etc/nginx/conf/ssl-unified.crt;
ssl_certificate_key /etc/nginx/conf/ssl.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # don’t use SSLv3 ref: POODLE
gzip on;
location = /favicon.ico {
root /home/gui/bundle/programs/web.browser/app;
access_log off;
expires 1w;
}
location ~* "^/[a-z0-9]{40}\.(css|js)$" {
root /home/gui/bundle/programs/web.browser;
access_log off;
expires max;
}
location ~ "^/packages" {
root /home/gui/bundle/programs/web.browser;
access_log off;
}
location / {
proxy_pass http://localhost:8090;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment