diff --git a/docs/content/docs/(docs)/self-hosting-guides/custom-nginx.mdx b/docs/content/docs/(docs)/self-hosting-guides/custom-nginx.mdx index ba9d38a55..5e2cdb86c 100644 --- a/docs/content/docs/(docs)/self-hosting-guides/custom-nginx.mdx +++ b/docs/content/docs/(docs)/self-hosting-guides/custom-nginx.mdx @@ -70,6 +70,7 @@ server { add_header X-XSS-Protection "1; mode=block" always; # Backend service + # The /.well-known/ path is for OIDC discovery location ~ ^/(api|\.well-known)/.*$ { proxy_pass http://localhost:3001; proxy_set_header Host $host; @@ -198,7 +199,7 @@ If you need to use custom ports for Rybbit: Update your Nginx configuration accordingly: ```nginx -location /api/ { +location ~ ^/(api|\.well-known)/.*$ { proxy_pass http://localhost:8080; # Custom backend port # ... rest of config }