From 459b3d375152862e081aa023855e459546a1ff68 Mon Sep 17 00:00:00 2001 From: Giacomo Sanchietti Date: Thu, 4 Apr 2024 18:05:05 +0200 Subject: [PATCH] build: disable webssh ui Prevent abuse usage --- build-images.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/build-images.sh b/build-images.sh index 1138fef..3d1b1be 100755 --- a/build-images.sh +++ b/build-images.sh @@ -35,6 +35,22 @@ buildah run \ adduser -Ss /bin/false -g webssh webssh && \ chown -R webssh:webssh /code " +# disable built-in ui +buildah run \ + --workingdir '/code' \ + ${webssh} \ + sh -c 'cat < webssh/templates/index.html +> + + + + WebSSH + + +

Web interface has been disabled

+ + +EOF' popd popd rm -rf webssh_tmp