serverblock
· 233 B · Text
Исходник
server {
listen 80;
server_name <domain_name.com>;
location / {
proxy_pass http://127.0.0.1:<port>;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
1 | server { |
2 | listen 80; |
3 | server_name <domain_name.com>; |
4 | location / { |
5 | proxy_pass http://127.0.0.1:<port>; |
6 | proxy_set_header Host $host; |
7 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
8 | } |
9 | } |