Is the X-Ingress-Path fully supported? #16746
Replies: 2 comments 8 replies
-
Seems that everything was working fine under the sub-path
While all the other resources are being routed based on a fixed match (e.g. However that regex will not match when I add a sub-path prefix
Then all the images in the Explore tab are loaded nicely (both with and without the sub-path): |
Beta Was this translation helpful? Give feedback.
-
I have been searching in the codebase, to see if if something similar exists already. To make sure I don't reinvent hot water, and do it the Frigate way. And it looks to me that the TLS config settings are a good way to get started with this:
I would like to implement something similar for the base_path:
Which means you can set the base_path both via a http header (like currently already supported) and extra via the frigate config. Is it ok if I try to implement something like that, and create a pull-request? |
Beta Was this translation helpful? Give feedback.
-
Hi everybody,
I run a Tailscale vpn mesh network, and I need to access the Frigate web interface via a base-path
/frigate
. I am aware that this is not possible, but instead I should provide a http headerX-Ingress-Path
containing value/frigate
. Hower the reverse proxy inside my Tailscale agent daemon is very basic, so it does not allow me to add http headers. Fortunately I found this workaround: after adding that code snippet to my Nginx conf file, I can navigate to base-path/frigate
, and Nginx will automatically create the http header.As a result my Frigate web interface is now accessible via the specified base-path. So far so good.
However parts of my web interface are not fetched correctly from the server. For example the thumbnail images:
When I remove the base-path from the url, it works fine:
But there are also other kind of resources that cannot be fetched:
It looks to me - from the Nginx.conf file - that the
X-Ingress-Path
is only used for the resources that are directly loaded from the root html file.Based on this I have some questions:
envsubst
to automatically replace the placeholders in a template nginx conf file (at container startup), and create a final conf file that contains the environment variable values and will be used to start Nginx. Or if anybody has a better idea, don't hesistate to share it!Thanks!
Bart
Beta Was this translation helpful? Give feedback.
All reactions