enable remote access

This commit is contained in:
2026-02-06 19:00:27 +01:00
parent 62af8c1ed7
commit 4253ca5ffe
3 changed files with 18 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ RUN apt-get update && \
FROM debian:trixie FROM debian:trixie
COPY start.sh . COPY start.sh .
COPY initialconfig.json .
COPY --from=builder /usr/bin/hyperiond /usr/bin/hyperiond COPY --from=builder /usr/bin/hyperiond /usr/bin/hyperiond
RUN apt-get update && \ RUN apt-get update && \
apt-get upgrade -y -q && \ apt-get upgrade -y -q && \
@@ -45,5 +46,4 @@ ENV UID=1000
ENV GID=1000 ENV GID=1000
SHELL ["/bin/bash", "-c"] SHELL ["/bin/bash", "-c"]
ENTRYPOINT bash start.sh uid="$UID" gid="$GID" ENTRYPOINT bash start.sh uid="$UID" gid="$GID" server_address="$SERVER_ADDRESS"
#ENTRYPOINT tail -f /dev/null

11
initialconfig.json Normal file
View File

@@ -0,0 +1,11 @@
{
"global": {
"settings":{
"network":{
"internetAccessAPI":true,
"localApiAuth":false,
"restirctedInternetAccessAPI":false
}
}
}
}

View File

@@ -12,4 +12,8 @@ done
groupmod -g $gid hyperion groupmod -g $gid hyperion
usermod -u $uid hyperion usermod -u $uid hyperion
chown -R hyperion:hyperion /config chown -R hyperion:hyperion /config
if test -f "initialconfig.json"; then
sudo -u hyperion /usr/bin/hyperiond/bin/hyperiond -i --userdata /config --importConfig initialconfig.json
rm initialconfig.json
fi
sudo -u hyperion /usr/bin/hyperiond/bin/hyperiond -i --userdata /config sudo -u hyperion /usr/bin/hyperiond/bin/hyperiond -i --userdata /config