mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 12:25:22 +02:00
Added docker-compose config for nginx-basic-auth.
This commit is contained in:
parent
c3f22fe989
commit
5947e262fc
5 changed files with 36 additions and 4 deletions
17
examples/nginx-basic-auth/default.conf
Normal file
17
examples/nginx-basic-auth/default.conf
Normal file
|
@ -0,0 +1,17 @@
|
|||
upstream dockerui {
|
||||
server dockerui: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://dockerui;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue