From 2cfb458604ea4a2aa5c5a00fdc9308520f15f458 Mon Sep 17 00:00:00 2001 From: Gregory Marco Date: Sun, 8 Dec 2024 03:16:37 -0600 Subject: [PATCH] add support for htpasswd auth --- nginx.conf.template | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nginx.conf.template b/nginx.conf.template index 31acb2d..fb4144b 100644 --- a/nginx.conf.template +++ b/nginx.conf.template @@ -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;