Skip to content
Discussion options

You must be logged in to vote

The reason I use basic_auth is because I have fail2ban installed on my server and it reads nginx's access logs and auto-ban any IP that fails too many nginx logins (HTTP 401). (for example those 401 in my access log would have gotten my own IP banned if I kept using them).

Instead of worrying whether any of the many apps I self-host is properly secured by the developer, I just let nginx+fail2ban take care of auth, and I don't have to care. Even if your app has zero security, I'm unhackable this way. It's a very common setup among casual self-hosters like me who want to set something up and forget about it for months.

I went with option 1. What ChatGPT gave you has a small issue, it gives …

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@danny-avila
Comment options

@danny-avila
Comment options

@danny-avila
Comment options

@passaca
Comment options

@danny-avila
Comment options

Answer selected by jerkstorecaller
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ question Further information is requested
4 participants
Converted from issue

This discussion was converted from issue #889 on September 06, 2023 20:28.