From b56fb8bc40fcf841f9cb1ebafb5283daec00e47e Mon Sep 17 00:00:00 2001 From: Ernst Widerberg Date: Wed, 10 Nov 2021 16:22:39 +0100 Subject: Add auth-server-poc --- auth-server-poc/config/nginx_app.conf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 auth-server-poc/config/nginx_app.conf (limited to 'auth-server-poc/config/nginx_app.conf') diff --git a/auth-server-poc/config/nginx_app.conf b/auth-server-poc/config/nginx_app.conf new file mode 100644 index 0000000..7b1e6f9 --- /dev/null +++ b/auth-server-poc/config/nginx_app.conf @@ -0,0 +1,17 @@ +server { + listen 80; + server_name auth-server-poc; + client_max_body_size 200M; + + location / { + limit_except OPTIONS { + auth_basic "auth-server-poc static auth"; + auth_basic_user_file "/opt/auth-server-poc/userdb/.htpasswd"; + } + uwsgi_pass unix:///tmp/uwsgi.sock; + default_type application/json; + include uwsgi_params; + uwsgi_param REMOTE_USER $remote_user; + uwsgi_param AUTH_TYPE Basic; + } +} -- cgit v1.1