themepark-dev / theme.park

A collection of themes/skins for 50 selfhosted apps!
https://theme-park.dev
MIT License
2.44k stars 801 forks source link

Docker Mods (Plex) : What the purpose of TP_DOMAIN environment variable ? #169

Closed MilesTEG1 closed 3 years ago

MilesTEG1 commented 3 years ago

Hello, I'm using your theme to my Gitea installation, and I stat using it too on my plex Docker installation. If I don't set the environment variable TP_DOMAIN, the theme is well applied on my Plex, when I access it with its LAN IP, or with its domaine-name. (I just see that it doesn't work with the windows application...)

But when I put my domaine name in the TP_DOMAIN variable, the theme is no more applied whether it is with the IP LAN or the domaine name...

So my question is : what does the TP_DOMAIN variable ?

Here the PMS log I get after the reboot, and without anything in TP_DOMAIN variable :

[mod-init] Attempting to run Docker Modification Logic
[mod-init] Applying gilbn/theme.park:plex files to container
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/

Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1012
User gid:    100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 40-chown-files: executing...
[cont-init.d] 40-chown-files: exited 0.
[cont-init.d] 45-plex-claim: executing...
[cont-init.d] 45-plex-claim: exited 0.
[cont-init.d] 50-gid-video: executing...
[cont-init.d] 50-gid-video: exited 0.
[cont-init.d] 60-plex-update: executing...
Docker is used for versioning skip update check
[cont-init.d] 60-plex-update: exited 0.
[cont-init.d] 98-themepark: executing...
-------------------------
|  Plex theme.park Mod  |
-------------------------
Variables set:
'TP_DOMAIN'=
'TP_THEME'=dark

No domain set, defaulting to gilbn.github.io
---------------------------
|  Adding the stylesheet  |
---------------------------
Stylesheet set to dark

[cont-init.d] 98-themepark: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Starting Plex Media Server.

Thanks for your help, and for your work :D

GilbN commented 3 years ago

TP_DOMAIN can be used if you selfhost theme.park or have forked it and setup your own github pages.

MilesTEG1 commented 3 years ago

Haaaa, ok :D I thought it was my domaine name for the app receiving the theme ;) Thanks for the clarification.