Skip to content
Dany M edited this page Jul 30, 2016 · 1 revision

Welcome to the mn wiki!

Here's an example nginx config:

server {
    listen 80;
    server_name your.dom.a.in;

    location / {
        proxy_set_header   X-Forwarded-For $remote_addr;
        proxy_set_header   Host $http_host;
        proxy_pass         "http://127.0.0.1:3016";
    }
}

map $http_upgrade $connection_upgrade {
    default upgrade;
    ''      close;
}

server {
    listen 8080;
    location / {
        proxy_pass "http://127.0.0.1:8081";
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
    }
}
~
Clone this wiki locally