KristopherPaulsen
12/7/2017 - 5:11 PM

gistfile1.txt

worker_processes 1;
events { worker_connections 1024; }

http {

    sendfile on;

    server {
        listen 80;

        location / {
            proxy_pass http://127.0.0.1:81;
            proxy_set_header  X-Real-IP  $remote_addr;
            proxy_set_header   X-Real-IP $remote_addr;
            proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header   X-Forwarded-Host $server_name;
        }
    }
}