fix(nginx): preserve /api/v1 prefix when proxying to api_yal, add favicon

This commit is contained in:
valitovgaziz
2026-06-12 01:23:06 +05:00
parent edb7eabd18
commit ba7b757541
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ server {
# ЛОКАЦИЯ: REST API (api_yal) # ЛОКАЦИЯ: REST API (api_yal)
# ============================================ # ============================================
location /api/v1/ { location /api/v1/ {
proxy_pass http://api_yal:8787/; proxy_pass http://api_yal:8787;
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;
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<rect width="32" height="32" rx="6" fill="#196533"/>
<text x="16" y="23" font-size="20" font-family="serif" fill="white" text-anchor="middle">Я</text>
</svg>

After

Width:  |  Height:  |  Size: 224 B