File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ scheduling.{{ root_domain }} {
20
20
{% for user in gc_users %}{{ user.name }} {{ user.hash }}
21
21
{% endfor %}
22
22
}
23
+ basicauth /replace_referee {
24
+ {% for user in gc_admin_users %}{{ user.name }} {{ user.hash }}
25
+ {% endfor %}
26
+ }
23
27
}
24
28
25
29
portainer.{{ field_name }}.{{ root_domain }} {
Original file line number Diff line number Diff line change @@ -43,14 +43,18 @@ def load_password_hashes():
43
43
password_hashes = load_password_hashes ()
44
44
45
45
gc_users = []
46
+ gc_admin_users = []
46
47
for username , password_hash in password_hashes .items ():
47
48
gc_users .append ({"name" : username , "hash" : password_hash })
49
+ if username == "guacadmin" :
50
+ gc_admin_users .append ({"name" : username , "hash" : password_hash })
48
51
49
52
template = Template (load_caddyfile_template ())
50
53
caddyfile = template .render ({
51
54
"root_domain" : root_domain ,
52
55
"field_name" : field_name ,
53
- "gc_users" : gc_users
56
+ "gc_users" : gc_users ,
57
+ "gc_admin_users" : gc_admin_users
54
58
})
55
59
with open (caddy_file , "w" ) as file :
56
60
file .write (caddyfile )
You can’t perform that action at this time.
0 commit comments