diff --git a/docs/docker.md b/docs/docker.md index 6edcc29..b490984 100644 --- a/docs/docker.md +++ b/docs/docker.md @@ -85,7 +85,7 @@ server { } # SSE endpoints - location ~ ^/api/v2/(spots|alerts)/stream/? { + location ~ ^/api/v\d*/(spots|alerts)/stream/? { proxy_pass http://spothole:8080; # Remove buffering, remove caching, add suitable timeouts for SSE API calls @@ -193,4 +193,4 @@ point it at the new container rather than at a filesystem path: expires 1h; add_header Cache-Control "public, max-age=3600, must-revalidate"; } -``` \ No newline at end of file +``` diff --git a/docs/nginx.md b/docs/nginx.md index fb9d2a7..1d39cc3 100644 --- a/docs/nginx.md +++ b/docs/nginx.md @@ -48,7 +48,7 @@ server { } # SSE endpoints - location ~ ^/api/v2/(spots|alerts)/stream/? { + location ~ ^/api/v\d*/(spots|alerts)/stream/? { proxy_pass http://127.0.0.1:8080; # Remove buffering, remove caching, add suitable timeouts for SSE API calls