wantguns / bin

highly opinionated, minimal pastebin
https://basedbin.fly.dev
GNU Lesser General Public License v3.0
194 stars 20 forks source link

Password Authentication? #13

Open fritzcloud opened 2 years ago

fritzcloud commented 2 years ago

Hi,

I just installed this Bin via docker and I just love the functionality and gui. Is it possible to add some form of authentication? I want to run this exposed to the internet, but since my server is at home I don't want anyone to be able to paste and share. My ideal use case is: I want to share a piece of text picture, so I open my URL, put in a password, and get a sharing link. The receiver of the share link should be able to access it without a password. That makes me unable to use authentication via nginx or similar since you would also need a pw just to open the link.

Thanks you!

wantguns commented 2 years ago

Hey, Thanks for checking out bin. I totally get your use-case. I kinda want this implemented myself. But we are not using any database as of now, so this remains unimplemented. With new issues mounting up, I think its time I started working on this pet project and extend it. Unfortunately, I am very busy with other tasks at the moment. If you'll stick around for a month (;-;), these features should be implemented in this project. I will open a new Github Project in a day or two listing all the suggested features for people to track.

DhruvaSambrani commented 1 year ago

Can't nginx handle GET and POST requests differently? https://serverfault.com/a/246583

ellotheth commented 1 year ago

In case it's useful to anybody else, I wrote up how I configured Nginx to do this for me.