Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

6. Nginx setup

Steven edited this page Mar 22, 2018 · 2 revisions

Now that your app runs, you should setup a simple reverse proxy. We love Nginx here at Sigwo Technologies. You can use this as the base configuration:

server {
        underscores_in_headers on;
        listen 80;
        listen [::]:80;
        server_name gravity.sigwo.com;
    location / {
        proxy_pass http://127.0.0.1:4000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}

After the initial setup, we recommend using Let's Encrypt to enable SSL for your site. A handy setup guide for Ubuntu can be found at here.

Clone this wiki locally