22 lines
616 B
Plaintext
22 lines
616 B
Plaintext
|
server {
|
||
|
listen 80;
|
||
|
listen [::]:80;
|
||
|
server_name localhost;
|
||
|
|
||
|
location /test/ {
|
||
|
proxy_pass http://test:80/;
|
||
|
proxy_set_header Host $host;
|
||
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||
|
proxy_set_header X-Forwarded-Prefix /test;
|
||
|
}
|
||
|
|
||
|
location /admin/ {
|
||
|
proxy_pass http://admin:80/;
|
||
|
proxy_set_header Host $host;
|
||
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||
|
proxy_set_header X-Forwarded-Prefix /admin;
|
||
|
}
|
||
|
}
|