Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Authentication / Password Protect Web UI #39

Closed
DebugDax opened this issue Sep 26, 2022 · 5 comments · Fixed by #40
Closed

Authentication / Password Protect Web UI #39

DebugDax opened this issue Sep 26, 2022 · 5 comments · Fixed by #40
Assignees
Labels
enhancement New feature or request released

Comments

@DebugDax
Copy link

Hello,

Could you please add support to have the Web front-end be password protected?

I would like to access my self hosted container outside my network but I can't do that if the site is public without any password protection.

I would think a method to approach this could be:

  1. .htaccess/.htpasswd, but I don't know how you would configure those values via Docker Environment variables

  2. A custom HTML page that is a login form to redirect to the actual Website-Shot webpage.

  3. A password field on the Website-Shot capture page that must be filled in and match the Docker Environment Variable: "capture_password" for the Capture to process (Or from a local config file for non-docker users).

Personally, I think Method 3 would be the least invasive.
Password

@Flowko
Copy link
Owner

Flowko commented Sep 26, 2022

Hi, Thanks for checking this out.

yes it can be added, will let u know once its added

@Flowko Flowko self-assigned this Sep 26, 2022
@Flowko Flowko added the enhancement New feature or request label Sep 26, 2022
@Flowko Flowko linked a pull request Sep 26, 2022 that will close this issue
@Flowko
Copy link
Owner

Flowko commented Sep 26, 2022

@DebugDax it should be added to the latest version now, can u confirm please?

docker pull flowko1/website-shot

docker run -t -d --restart always -p 3000:3000 -e PASSWORD_PROTECT=1 -e PASSWORD=yourpassword website-shot

@DebugDax
Copy link
Author

DebugDax commented Sep 26, 2022

@DebugDax it should be added to the latest version now, can u confirm please?

docker pull flowko1/website-shot

docker run -t -d --restart always -p 3000:3000 -e PASSWORD_PROTECT=1 -e PASSWORD=yourpassword website-shot

I set up the new container and it works great! Unauthorized if password is wrong, Captures if password is right.
My only recommendation would be to change it from a text box to a password box so that the password isn't visible on my screen as plain text.

Thank you for adding this so quickly!

@Flowko
Copy link
Owner

Flowko commented Sep 26, 2022

ah yes indeed, will add it asap, thanks

@Flowko
Copy link
Owner

Flowko commented Sep 26, 2022

@DebugDax its published now

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants