27 lines
782 B
Nginx Configuration File
27 lines
782 B
Nginx Configuration File
|
http {
|
||
|
server {
|
||
|
listen 80;
|
||
|
listen [::]:80;
|
||
|
server_name localhost;
|
||
|
|
||
|
location /disciplineService/ {
|
||
|
proxy_pass http://discipline:8089/;
|
||
|
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 /disciplineService;
|
||
|
}
|
||
|
|
||
|
location /learningPlanService/ {
|
||
|
proxy_pass http://learning_plan:8090/;
|
||
|
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 /learningPlanService;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
events {
|
||
|
worker_connections 1024;
|
||
|
}
|