modified: main_dc/docker-compose.yml
modified: main_dc/nginx/nginx-ssl.conf change name on nginx ssh config to api_tp
This commit is contained in:
@@ -91,7 +91,7 @@ services:
|
|||||||
retries: 3
|
retries: 3
|
||||||
start_period: 40s
|
start_period: 40s
|
||||||
|
|
||||||
api:
|
api_tp:
|
||||||
build:
|
build:
|
||||||
context: ./yalarba/api_tp
|
context: ./yalarba/api_tp
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
|||||||
@@ -1,12 +1,3 @@
|
|||||||
upstream api {
|
|
||||||
server api:8080;
|
|
||||||
}
|
|
||||||
|
|
||||||
upstream api_bb {
|
|
||||||
server api_bb:8080;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name yalarba.ru www.yalarba.ru valitovgaziz.ru www.valitovgaziz.ru easysite102.ru www.easysite102.ru begushiybashkir.ru xn--80abahjtcfl5d0a8di.xn--p1ai;
|
server_name yalarba.ru www.yalarba.ru valitovgaziz.ru www.valitovgaziz.ru easysite102.ru www.easysite102.ru begushiybashkir.ru xn--80abahjtcfl5d0a8di.xn--p1ai;
|
||||||
@@ -47,7 +38,7 @@ server {
|
|||||||
}
|
}
|
||||||
# REST API
|
# REST API
|
||||||
location /api/ {
|
location /api/ {
|
||||||
proxy_pass http://api/;
|
proxy_pass http://api_tp/;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|||||||
Reference in New Issue
Block a user