27 lines
686 B
Plaintext
27 lines
686 B
Plaintext
server {
|
|
listen 192.168.1.2:80;
|
|
server_name mtr.898.ro;
|
|
|
|
access_log /var/log/nginx/mtr.898.ro.access.log;
|
|
error_log /var/log/nginx/mtr.898.ro.error.log notice;
|
|
|
|
location / {
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_http_version 1.1;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $host;
|
|
proxy_pass http://172.17.0.2:8002;
|
|
}
|
|
|
|
location /mtr {
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_http_version 1.1;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $host;
|
|
proxy_pass http://172.17.0.2:8002;
|
|
}
|
|
}
|
|
|