7 lines
182 B
Bash
7 lines
182 B
Bash
#!/bin/sh
|
|
|
|
{{ if eq (env "AUTH_ENABLED") "1" }}
|
|
apk add --no-cache apache2-utils
|
|
htpasswd -b -c /etc/nginx/.htpasswd {{ env "AUTH_USERNAME" }} {{ secret "auth_password" }}
|
|
{{ end }}
|