1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 23:09:41 +02:00
portainer/examples/nginx-basic-auth/default.conf
2016-09-04 14:50:37 +12:00

17 lines
334 B
Text

upstream portainer {
server portainer:9000;
}
server {
listen 80;
server_name localhost;
location / {
auth_basic "Docker UI";
auth_basic_user_file /etc/nginx/users.htpasswd;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_pass http://portainer;
}
}