summaryrefslogtreecommitdiff
path: root/auth-server-poc/config/nginx_app.conf
blob: 7b1e6f97760724a4b8a4555f3b269ff40f20b825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
    }
}