21 lines
674 B
Nginx Configuration File
21 lines
674 B
Nginx Configuration File
|
server {
|
||
|
listen 80;
|
||
|
listen [::]:80;
|
||
|
server_name localhost;
|
||
|
|
||
|
location /api/v1/company {
|
||
|
proxy_pass http://company:8080;
|
||
|
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-For $proxy_add_x_forwarded_for;
|
||
|
}
|
||
|
|
||
|
location /api/v1/vacancy {
|
||
|
proxy_pass http://vacancy:8080;
|
||
|
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-For $proxy_add_x_forwarded_for;
|
||
|
}
|
||
|
}
|