🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Forward .well-known to backend in custom Nginx configuration (#1107)
Shengqi Chen88b5a37b2c8c
diff --git a/docs/content/docs/(docs)/self-hosting-guides/custom-nginx.mdx b/docs/content/docs/(docs)/self-hosting-guides/custom-nginx.mdxindex d8c3e7a76..ba9d38a55 100644--- a/docs/content/docs/(docs)/self-hosting-guides/custom-nginx.mdx+++ b/docs/content/docs/(docs)/self-hosting-guides/custom-nginx.mdx@@ -69,8 +69,8 @@ server {add_header X-Content-Type-Options "nosniff" always;add_header X-XSS-Protection "1; mode=block" always;- # API requests- location /api/ {+ # Backend service+ location ~ ^/(api|\.well-known)/.*$ {proxy_pass http://localhost:3001;proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;@@ -84,7 +84,7 @@ server {proxy_read_timeout 60s;}- # Client app+ # Client servicelocation / {proxy_pass http://localhost:3002;proxy_set_header Host $host;@@ -242,4 +242,4 @@ sudo tail -f /var/log/nginx/error.log# Rybbit logsdocker compose logs -f-```\ No newline at end of file+```