Skip to content

Instantly share code, notes, and snippets.

@LeCoupa
Last active January 23, 2022 07:57

Revisions

  1. LeCoupa revised this gist Nov 10, 2017. No changes.
  2. Julien Le Coupanec revised this gist Oct 17, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions meteor.ssl.nginx
    Original file line number Diff line number Diff line change
    @@ -24,6 +24,7 @@ server {
    ssl on;
    ssl_certificate /etc/nginx/ssl/gentlenode.com.crt;
    ssl_certificate_key /etc/nginx/ssl/gentlenode.com.key;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # don’t use SSLv3 ref: POODLE

    location / {
    proxy_pass http://gentlenode/;
  3. Julien Le Coupanec revised this gist Jun 4, 2014. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions meteor.ssl.nginx
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,3 @@
    # Check our Journal to see how to deploy Meteor with Nginx:
    # http://journal.gentlenode.com/meteor-1-deploy-a-meteor-application-on-ubuntu-with-nginx/

    # Note: if you want to run multiple meteor apps on the same server,
    # make sure to define a separate port for each.

  4. Julien Le Coupanec revised this gist Jun 4, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion meteor.ssl.nginx
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    # http://journal.gentlenode.com/meteor-1-deploy-a-meteor-application-on-ubuntu-with-nginx/

    # Note: if you want to run multiple meteor apps on the same server,
    # make sure you define a separate port for each.
    # make sure to define a separate port for each.

    # Upstreams
    upstream gentlenode {
  5. Julien Le Coupanec revised this gist Jun 4, 2014. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions meteor.ssl.nginx
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    # Check our Journal to see how to deploy Meteor with Nginx:
    # http://journal.gentlenode.com/meteor-1-deploy-a-meteor-application-on-ubuntu-with-nginx/

    # Note: if you want to run multiple meteor apps on the same server,
    # make sure you define a separate port for each.

  6. Julien Le Coupanec revised this gist Jun 4, 2014. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion meteor.ssl.nginx
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    # Upstreams
    # 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;
    }
  7. Julien Le Coupanec revised this gist Jun 3, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion meteor.ssl.nginx
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@ server {
    listen 443;
    server_name gentlenode.com;

    root /srv/data_gentlenode/web/gentlenode.com;
    root /srv/data_studio/web/gentlenode.com;
    error_log /var/log/nginx/gentlenode.com.log crit;

    ssl on;
  8. Julien Le Coupanec revised this gist Mar 30, 2014. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions meteor.ssl.nginx
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,6 @@
    # Upstreams
    # 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;
    }
  9. Julien Le Coupanec revised this gist Mar 30, 2014. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions meteor.ssl.nginx
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,8 @@
    # Upstreams
    # 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;
    }
  10. Julien Le Coupanec revised this gist Mar 30, 2014. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions meteor.ssl.nginx
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,3 @@
    # Deploy with SSL

    # Upstreams
    upstream gentlenode {
    server 127.0.0.1:58080;
  11. Julien Le Coupanec revised this gist Mar 30, 2014. 1 changed file with 0 additions and 33 deletions.
    33 changes: 0 additions & 33 deletions meteor.nginx
    Original file line number Diff line number Diff line change
    @@ -1,33 +0,0 @@
    # Deploy without SSL

    # Check our Journal to see how to deploy Meteor with Nginx:
    # http://journal.gentlenode.com/meteor-1-deploy-a-meteor-application-on-ubuntu-with-nginx/

    # Upstreams
    # Note: if you want to run multiple meteor apps on the same server,
    # make sure you define a separate port for each.
    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;
    }
    }
  12. Julien Le Coupanec revised this gist Mar 30, 2014. 2 changed files with 34 additions and 2 deletions.
    33 changes: 33 additions & 0 deletions meteor.nginx
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    # Deploy without SSL

    # Check our Journal to see how to deploy Meteor with Nginx:
    # http://journal.gentlenode.com/meteor-1-deploy-a-meteor-application-on-ubuntu-with-nginx/

    # Upstreams
    # Note: if you want to run multiple meteor apps on the same server,
    # make sure you define a separate port for each.
    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;
    }
    }
    3 changes: 1 addition & 2 deletions meteor.ssl.nginx
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,4 @@
    # Check our Journal to see how to deploy Meteor with Nginx:
    # http://journal.gentlenode.com/meteor-1-deploy-a-meteor-application-on-ubuntu-with-nginx/
    # Deploy with SSL

    # Upstreams
    upstream gentlenode {
  13. Julien Le Coupanec revised this gist Mar 30, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion meteor.ssl.nginx
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,7 @@ server {
    listen 443;
    server_name gentlenode.com;

    root /srv/data_eits/web/gentlenode.com;
    root /srv/data_gentlenode/web/gentlenode.com;
    error_log /var/log/nginx/gentlenode.com.log crit;

    ssl on;
  14. Julien Le Coupanec revised this gist Mar 30, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion meteor.ssl.nginx
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Check our Journal to see how to deploy Meteor on Nginx:
    # Check our Journal to see how to deploy Meteor with Nginx:
    # http://journal.gentlenode.com/meteor-1-deploy-a-meteor-application-on-ubuntu-with-nginx/

    # Upstreams
  15. Julien Le Coupanec created this gist Mar 30, 2014.
    42 changes: 42 additions & 0 deletions meteor.ssl.nginx
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,42 @@
    # Check our Journal to see how to deploy Meteor on Nginx:
    # http://journal.gentlenode.com/meteor-1-deploy-a-meteor-application-on-ubuntu-with-nginx/

    # Upstreams
    upstream gentlenode {
    server 127.0.0.1:58080;
    }

    # HTTP Server
    server {
    listen 0.0.0.0:80;
    server_name gentlenode.com;
    rewrite ^ https://$server_name$request_uri permanent;
    }

    # HTTPS Server
    server {
    listen 443;
    server_name gentlenode.com;

    root /srv/data_eits/web/gentlenode.com;
    error_log /var/log/nginx/gentlenode.com.log crit;

    ssl on;
    ssl_certificate /etc/nginx/ssl/gentlenode.com.crt;
    ssl_certificate_key /etc/nginx/ssl/gentlenode.com.key;

    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;
    }
    }