chore(nginx): The routes /, /robots.txt, /favicon.ico were moved to nginx for the web microservice. Added html page to the home route

This commit is contained in:
Данил 2025-02-13 12:43:09 +03:00
parent 907b614f25
commit 6bae4dabfc
14 changed files with 1480 additions and 28 deletions

View file

@ -24,5 +24,6 @@ http {
include chart/nginx.conf;
include server/nginx.conf;
include web/nginx.conf;
}
}

View file

@ -1,13 +1,3 @@
location / {
limit_req zone=kekkai burst=4;
proxy_pass http://server:3000;
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/getRate/ {
limit_req zone=kekkai burst=4;
@ -27,11 +17,3 @@ location /api/metadata/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /robots.txt {
alias robots.txt;
}
location /favicon.ico {
alias assets/logo.png;
}

17
nginx/web/nginx.conf Normal file
View file

@ -0,0 +1,17 @@
location / {
limit_req zone=kekkai burst=4;
proxy_pass http://web:3050;
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 /robots.txt {
alias robots.txt;
}
location /favicon.ico {
alias assets/logo.png;
}