Skip to content

Instantly share code, notes, and snippets.

@LeCoupa
Last active January 23, 2022 07:57
Show Gist options
  • Save LeCoupa/9877563 to your computer and use it in GitHub Desktop.
Save LeCoupa/9877563 to your computer and use it in GitHub Desktop.
How to deploy a Meteor application without SSL on Nginx --> https://github.com/LeCoupa/awesome-cheatsheets
# Note: if you want to run multiple meteor apps on the same server,
# make sure you define a separate port for each.
# Upstreams
upstream gentlenode {
server 127.0.0.1:58080;
}
# HTTP Server
server {
listen 0.0.0.0:80;
server_name gentlenode.com;
access_log /var/log/nginx/gentlenode.access;
location / {
proxy_pass http://gentlenode/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forward-Proto http;
proxy_set_header X-Nginx-Proxy true;
proxy_redirect off;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment