mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-07-01 03:26:03 +00:00
fix: preserve /api prefix in nginx reverse proxy
- Changed proxy_pass from http://backend/ to http://backend - Trailing slash was stripping /api prefix causing 404 errors - Backend expects /api/stats not /stats
This commit is contained in:
+1
-1
@@ -81,7 +81,7 @@ server {
|
|||||||
limit_req zone=api_limit burst=20 nodelay;
|
limit_req zone=api_limit burst=20 nodelay;
|
||||||
|
|
||||||
# Proxy settings
|
# Proxy settings
|
||||||
proxy_pass http://backend/;
|
proxy_pass http://backend;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|
||||||
# Headers
|
# Headers
|
||||||
|
|||||||
Reference in New Issue
Block a user