From 31d8022c25e9b8ef934c9de2498ec8a27e8616ec 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 | 7 +++++++ webssh/index.html | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 webssh/index.html diff --git a/build-images.sh b/build-images.sh index 1138fef..c9fa643 100755 --- a/build-images.sh +++ b/build-images.sh @@ -35,6 +35,13 @@ buildah run \ adduser -Ss /bin/false -g webssh webssh && \ chown -R webssh:webssh /code " +# disable built-in ui +buildah add "${webssh}" ../../webssh/index.html /code/webssh/templates/index.html +# cleanup the container +buildah run \ + --workingdir '/code' \ + ${webssh} \ + sh -c 'rm -rf preview docker-compose.yml setup.* tests' popd popd rm -rf webssh_tmp diff --git a/webssh/index.html b/webssh/index.html new file mode 100644 index 0000000..f0808c3 --- /dev/null +++ b/webssh/index.html @@ -0,0 +1,17 @@ + + + + + WebSSH + + + + + + +