Created
November 12, 2018 13:07
-
-
Save supun19/e05fe03c414c7f7b749edcd5469a6062 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
if ($host = barcode.meetrix.io) { | |
return 301 https://$host$request_uri; | |
} # managed by Certbot | |
listen 80; | |
server_name barcode.meetrix.io; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
listen [::]:443 ssl ; | |
server_name barcode.meetrix.io; | |
# ssl_certificate /etc/letsencrypt/live/show.cleverideas.com.mx/fullchain.pem; | |
# ssl_certificate_key /etc/letsencrypt/live/show.cleverideas.com.mx/privkey.pem; | |
# add_header Strict-Transport-Security "max-age=31536000; includeSubDomains"; | |
error_page 497 https://$host:$server_port$request_uri; | |
# | |
location / { | |
proxy_pass http://localhost:3000; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_set_header Host $host; | |
} | |
ssl_certificate /etc/letsencrypt/live/barcode.meetrix.io/fullchain.pem; # managed by Certbot | |
ssl_certificate_key /etc/letsencrypt/live/barcode.meetrix.io/privkey.pem; # managed by Certbot | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment