Skip to content

Instantly share code, notes, and snippets.

View surrealchemist's full-sized avatar

Joshua Kleiner surrealchemist

  • Sesame Workshop
View GitHub Profile
@surrealchemist
surrealchemist / auth-basic.conf
Last active July 3, 2019 12:28 — forked from Thermionix/auth-basic.conf
Adding "port_in_redirect off;" which fixes the problem caused when your router is forwarding from a different port. This stops nginx from adding the port back in which is needed in a couple cases.
auth_basic "Restricted";
auth_basic_user_file /usr/local/etc/nginx/htpasswd;