Добавил роут api/configuration/
Some checks failed
Create and publish a Docker image / build-and-push-server (push) Has been cancelled
Create and publish a Docker image / build-and-push-chart (push) Has been cancelled
Create and publish a Docker image / build-and-push-CR (push) Has been cancelled

This commit is contained in:
Данил 2024-10-14 16:29:00 +03:00
parent a697efbbd4
commit 42d47bb550

View file

@ -22,6 +22,14 @@ http {
proxy_set_header X-Forwarded-Proto $scheme;
}
location /api/configuration {
proxy_pass http://server_backend;
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/getChart {
proxy_pass http://chart_backend;
proxy_set_header Host $host;
@ -33,7 +41,7 @@ http {
server {
listen 443 ssl;
server_name localhost;
server_name localhost; # Your domain
ssl_certificate /etc/nginx/ssl/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/privkey.pem;
@ -46,6 +54,14 @@ http {
proxy_set_header X-Forwarded-Proto $scheme;
}
location /api/configuration {
proxy_pass http://server_backend;
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/getChart {
proxy_pass http://chart_backend;
proxy_set_header Host $host;