Add NGinx API location
This commit is contained in:
14
nginx.conf
14
nginx.conf
@@ -19,11 +19,11 @@ server {
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
|
||||
# location /api/ {
|
||||
# proxy_pass http://dockerprod2.icssophia.local:24600/;
|
||||
# proxy_set_header Host $host;
|
||||
# proxy_set_header X-Real-IP $remote_addr;
|
||||
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
# proxy_set_header X-Forwarded-Proto $scheme;
|
||||
# }
|
||||
location /api/ {
|
||||
proxy_pass http://devhost.bertom.lan:6081/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user