a-nau / password-protected-website-template

Template to create and host a simple password-protected website with Github Pages.
https://a-nau.github.io/password-protected-website-template/
MIT License
48 stars 16 forks source link

Adding website password on a local hosted site #6

Closed MrAhmalo closed 12 months ago

MrAhmalo commented 1 year ago

Adding website password on a local hosted site

I am hosting the website from this repository on a private linux server with nginx.

The website is loding normally but I can't log in because now I have no way to define a password because I am hosting it locally and I don't have the option to create a GitHub secret. I also have Gitea installed if that helps? (I am a bit new to this scene)

So How could I define a password to use the website and is there any way to link the website to Gitea? (Hosting it directly with Gitea not nginx)

Thank's for you're help in advance!

a-nau commented 12 months ago

This repo enables free hosting of password protected websites using Github pages. If you just want to encrypt a page, check staticrypt. That's what we use here as well and you can also directly input a password instead of taking the Github secret value.

Hope this helps!