Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Login Page

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.

How it works

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.

Screenshot 2025-02-25 at 08 59 46

How to test

First of all you will need docker installed in your system.

1) Run these commands to clone the repository:

git clone https://github.com/kaunofakultetas/simple-login-page
cd simple-login-page

2.1) Build and try the production build:

sudo 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-page

2.2) Or build and try the development build:

sudo 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-page

And open the 8080 port in the browser.

About

Simple password-wall GUI docker container

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages