diff options
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; + } +} |