24 lines
614 B
Plaintext
24 lines
614 B
Plaintext
server {
|
|
listen 5000;
|
|
server_name localhost;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:80/; # make sure to add trailing slash here!
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Scheme $scheme;
|
|
proxy_http_version 1.1;
|
|
|
|
client_max_body_size 0;
|
|
}
|
|
|
|
# redirect server error pages to the static page /50x.html
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root html;
|
|
}
|
|
}
|