hack4vdb / anthill

2 stars 1 forks source link

Password-protect until launch #80

Closed c3o closed 8 years ago

c3o commented 8 years ago

Simple shared HTTP basic auth in front of the whole thing?

anonjum commented 8 years ago

http://wanderlust.i-kiu.at/mitmachen/aktiv-werden/mitmachen/ same thing like here?

stefan2904 commented 8 years ago

Done. Ask in slack (or me) for an account.

Howto setup: http://nginx.org/en/docs/http/ngx_http_auth_basic_module.html

Howto add user: Create password with mkpasswd. Add user/password to /etc/nginx/htpasswd.

stefan2904 commented 8 years ago

fyi: re-obened /api, otherweise the bot is broken ;-)

stefan2904 commented 8 years ago
    location / {
        try_files $uri @proxy_to_app;

        auth_basic 'anthill demo';
        auth_basic_user_file /etc/nginx/htpasswd;
    }

    location /api/ {
        try_files /api/$uri @proxy_to_app;

        auth_basic off;
    }