Sometimes there is a need to add a simple and weak authentication for resources that you dont really care about but still want to protect from internet and prying eyes. One of the examples would be a system which is prepared for students to work in laboratory environment for which password later will be disclosed for students anyway.
This system is GUI only. This web app adds simply a cookie in the browser named "app-password" in plain text. It is intended to work with reverse proxy (for example Caddy) which then checks if the correct cookie exists and redirects requests to the system which is protected by this password. It is possible to make several passwords which would redirect traffic to different systems based on the password but all this redirection is configured in the reverse proxy which is not included in this project.
First of all you will need docker installed in your system.
git clone https://github.com/kaunofakultetas/simple-login-page
cd simple-login-pagesudo docker build -t simple-login-page -f Dockerfile ./
sudo docker run -it --rm --env VITE_SYSTEM_NAME="Failų dalijimosi<br/>sistema" -p 8080:80 simple-login-pagesudo docker build -t simple-login-page -f Dockerfile.dev ./
sudo docker run -it --rm --env VITE_SYSTEM_NAME="Failų dalijimosi<br/>sistema" -v ./app:/app -p 8080:80 simple-login-pageAnd open the 8080 port in the browser.