Skip to content

Commit

Permalink
build: disable webssh ui
Browse files Browse the repository at this point in the history
Prevent abuse usage
  • Loading branch information
gsanchietti committed Apr 4, 2024
1 parent 822b5ca commit 459b3d3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF > webssh/templates/index.html
> <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>WebSSH</title>
</head>
<body>
<p>Web interface has been disabled</p>
</body>
</html>
EOF'
popd
popd
rm -rf webssh_tmp
Expand Down

0 comments on commit 459b3d3

Please sign in to comment.