add support for htpasswd auth
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2024-12-08 03:16:37 -06:00
parent e6cc5e5e1b
commit 2cfb458604

View File

@@ -5,9 +5,14 @@ server {
client_max_body_size 100G;
satisfy any;
# send all requests to the `/validate` endpoint for authorization
auth_request /validate;
auth_basic "goatbin";
auth_basic_user_file /etc/nginx/htpasswd;
location = /validate {
# forward the /validate request to Vouch Proxy
proxy_pass http://@VOUCH_INTERNAL@/validate;