diff options
author | Ernst Widerberg <ernst@sunet.se> | 2021-11-10 16:22:39 +0100 |
---|---|---|
committer | Ernst Widerberg <ernst@sunet.se> | 2021-11-10 16:22:39 +0100 |
commit | b56fb8bc40fcf841f9cb1ebafb5283daec00e47e (patch) | |
tree | a094e60c1e70d9d3faba459d4ce49f6ee6d88a3b /auth-server-poc/config/nginx_app.conf | |
parent | b80133312330f8f060a78debc635587b88f2367c (diff) |
Add auth-server-poc
Diffstat (limited to 'auth-server-poc/config/nginx_app.conf')
-rw-r--r-- | auth-server-poc/config/nginx_app.conf | 17 |
1 files changed, 17 insertions, 0 deletions
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; + } +} |