Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen [::]:80;
- server_name scottdiemer.com www.scottdiemer.com;
- return 301 https://www.scottdiemer.com$request_uri;
- }
- # HTTPS β proxy all requests to the Node app
- server {
- # Enable HTTP/2
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
- server_name scottdiemer.com www.scottdiemer.com;
- # Use the Letβs Encrypt certificates
- ssl_certificate /etc/letsencrypt/live/www.scottdiemer.com/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/www.scottdiemer.com/privkey.pem;
- # Include the SSL configuration from cipherli.st
- include /etc/nginx/snippets/ssl-params.conf;
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-NginX-Proxy true;
- proxy_pass http://localhost:3000/;
- proxy_ssl_session_reuse off;
- proxy_set_header Host $http_host;
- proxy_cache_bypass $http_upgrade;
- proxy_redirect off;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement