Change Port from CLI? #2625
-
how would one change the port for companion from the cli? on every new install I never see the initial screen to set the port on my raspberry pi4. I am trying to use little backup box on the same device and that also uses port 8000 only its handled using apache2. as of now, in the web gui, there is nowhere to change te 8000 port number to something else. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Companion is being run as a system service on companion-pi, so is lacking the 'launcher' ui. Changing the port isn't currently exposed, no-one else has asked for it. |
Beta Was this translation helpful? Give feedback.
Companion is being run as a system service on companion-pi, so is lacking the 'launcher' ui.
Changing the port isn't currently exposed, no-one else has asked for it.
You could do it by modifying the line https://github.com/bitfocus/companion-pi/blob/main/launch.sh#L16 (at
/usr/local/src/companion-pi/launch.sh
) and adding--admin-port 8080
at the end of the line (substituting in the port number you choose)But this might cause future updates to the companion-pi tooling to break, when/if this line gets changed by us and results in a merge conflict