modified: serv_nginx/nginx/nginx-ssl.conf
add new location for rest api begushiybashkir.ru
This commit is contained in:
@@ -120,4 +120,18 @@ server {
|
||||
index index.html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
# New location for REST API
|
||||
location /api/ {
|
||||
proxy_pass http://api:8080/;
|
||||
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;
|
||||
proxy_set_header X-Forwarded-Port $server_port;
|
||||
proxy_connect_timeout 600;
|
||||
proxy_send_timeout 600;
|
||||
proxy_read_timeout 600;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user