headscale-admin
headscale-admin copied to clipboard
Pass ENDPOINT as ENV var
Would it be possible to pass the ENDPOINT=/xyz without the need to rebuild the image ?
The same is used in other similar HS UI: https://github.com/iFargle/headscale-webui/blob/main/docker-compose.yml which uses SCRIPT_NAME=/admin as ENV var
Checking the Dockerfile, it would be as simple as adding a single line to the dockerfile (assuming there's no other dependency): https://github.com/GoodiesHQ/headscale-admin/blob/e74547de6d3a7abf59bf837880ab3ea382e2433b/Dockerfile#L37-L39
ARG ENDPOINT
ENV ENDPOINT=${ENDPOINT} # <============= ADD
ARG PORT
ENV PORT=${PORT}
Since you had that already for PORT, I managed to overrite it to 9999 by adding the below to my docker compose:
environment:
PORT: "9999"