Set custom url path with nginx reverse proxy #367
Replies: 16 comments
-
I think you are trying to use a sub route. Thats not supported at the moment. Please use a subdomain instead |
Beta Was this translation helpful? Give feedback.
-
For security/organizational reasons I can't use a subdomain, I need to use a secondary path. Would it be possible to include this option for future versions? |
Beta Was this translation helpful? Give feedback.
-
Currently not. It requires the frontend to adjust for the custom path (not that much of a deal), but also the backend, which is not really supported yet pocketbase/pocketbase#1802 (reply in thread) |
Beta Was this translation helpful? Give feedback.
-
Ok, well, we hope that one day that function will arrive.
Another alternative that could be valid for me would be to configure UpSnap to load https natively, would it be possible to configure UpSnap to load https natively? |
Beta Was this translation helpful? Give feedback.
-
You can already use https with automatic Lets Encrypt certs:
https://pocketbase.io/docs/going-to-production/#deployment-strategies |
Beta Was this translation helpful? Give feedback.
-
Can I use my own certificates? Since the Lets Encrypt certificates would not work for me from within the VPN / LAN |
Beta Was this translation helpful? Give feedback.
-
Does not look like it |
Beta Was this translation helpful? Give feedback.
-
You don't seem to see a feasible solution to the problem of using certificates are redirected to using a reverse proxy which for security/organizational reasons, I can't use a subdomain and need to use a secondary path. |
Beta Was this translation helpful? Give feedback.
-
I think it should work if you have a trailing slash on both the You may need a
|
Beta Was this translation helpful? Give feedback.
-
What you are telling me would be something like this?
|
Beta Was this translation helpful? Give feedback.
-
Almost. The referrer check needs to go into |
Beta Was this translation helpful? Give feedback.
-
Ok!, What you are telling me would be something like this?
|
Beta Was this translation helpful? Give feedback.
-
Is this a working solution for your issue? |
Beta Was this translation helpful? Give feedback.
-
I did it on secondary path and caddy reserve proxy but It didnt work. I used handle_path in Caddyfile anyway.. |
Beta Was this translation helpful? Give feedback.
-
Just want to plus 1 this, it would save a lot of work on the user end making much easier to integrate with personal dashboard etc. |
Beta Was this translation helpful? Give feedback.
-
I looked at the problem again and found out that this is currently not possible in SvelteKit. You can create a custom base path in SvelteKit, but it has to be specified during the build. Unfortunately, this cannot be changed by environment variables as $env/dynamic/public vars need a node runtime (which we don't have in this case) and $env/static/public gets prerendered at build time. If some Svelte/JS genius has an idea who to solve this, I'm open for solutions but I think it's currently not possible. |
Beta Was this translation helpful? Give feedback.
-
Could you tell me how to get UpSnap to work correctly with an nginx reverse proxy? Do I have to add some special parameter to make it work?
location ^~ /UpSnap {
proxy_pass http://localhost:8090/;
}
As you can see in the images, it does not do the redirections correctly
Beta Was this translation helpful? Give feedback.
All reactions