You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Docker] Suggestion: support base path for selfhosting #352
Thanks, great work! Seems to be okay. However it is not yet implemented in docker mods for me and putting xxx.xxx.xxx.xxx/themepark url in TP_DOMAIN env variable resulted in sed errors.
I have just noticed that when accessing the base theme css files via web, they have an @import statements with url that has http scheme despite having TP_SCHEME=https env variable set up. When I cat the css file, those same urls had https scheme, but they were missing the base path.
So: when acessing
Via web: @import url("http://xxx.xxx.xxx.xxx/themepark/css/base/bazarr/bazarr-base.css?sha=None");
Directly the css file located in /config/www/css folder: @import url("https://xxx.xxx.xxx.xxx/css/base/bazarr/bazarr-base.css?sha=None");
Yup, I was connecting to theme-park via http from the reverse proxy point of view. Nonetheless, it seems kind of strange. I would think that the scheme depended entirely on what I set in the env variable. Is this the intended behaviour?
Activity
GilbN commentedon Mar 29, 2022
please test
-e TP_URLBASEon thedeveloptagsambartik commentedon Mar 29, 2022
Thanks, great work! Seems to be okay. However it is not yet implemented in docker mods for me and putting
xxx.xxx.xxx.xxx/themeparkurl inTP_DOMAINenv variable resulted in sed errors.GilbN commentedon Mar 29, 2022
use
TP_DOMAIN=domain.com\/themeparksambartik commentedon Mar 29, 2022
Great, it works! Thanks!
sambartik commentedon Mar 29, 2022
I have just noticed that when accessing the base theme css files via web, they have an @import statements with url that has
httpscheme despite havingTP_SCHEME=httpsenv variable set up. When Icatthe css file, those same urls hadhttpsscheme, but they were missing the base path.So: when acessing
@import url("http://xxx.xxx.xxx.xxx/themepark/css/base/bazarr/bazarr-base.css?sha=None");/config/www/cssfolder:@import url("https://xxx.xxx.xxx.xxx/css/base/bazarr/bazarr-base.css?sha=None");GilbN commentedon Mar 29, 2022
make sure you reverse proxy the https port or access locally using the https port
sambartik commentedon Mar 30, 2022
Yup, I was connecting to theme-park via http from the reverse proxy point of view. Nonetheless, it seems kind of strange. I would think that the scheme depended entirely on what I set in the env variable. Is this the intended behaviour?