mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-24 00:35:10 +00:00
fix: enhance validation for HASHED_PASSWORD in production environment script
add: production/production.yaml to gitignore
This commit is contained in:
parent
d4d99afdfa
commit
8f278e6a13
2 changed files with 8 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -34,3 +34,4 @@ production/*.env
|
|||
production/generated-compose.yaml
|
||||
production/logs/
|
||||
production/backups/
|
||||
production/production.yaml
|
||||
|
|
|
|||
|
|
@ -176,6 +176,13 @@ EOF
|
|||
echo " Generate with: openssl passwd -apr1 yourpassword"
|
||||
fi
|
||||
|
||||
# Check if HASHED_PASSWORD has username prefix (it shouldn't)
|
||||
if [[ -n "$hashed_password" ]] && echo "$hashed_password" | grep -q "^admin:"; then
|
||||
echo_error "HASHED_PASSWORD should NOT include 'admin:' prefix"
|
||||
echo_warn "Remove 'admin:' from the hash in traefik.env"
|
||||
echo_warn "The compose file adds it automatically"
|
||||
fi
|
||||
|
||||
# Check domain format
|
||||
local traefik_domain
|
||||
traefik_domain=$(get_env_value "traefik.env" "TRAEFIK_DOMAIN")
|
||||
|
|
|
|||
Loading…
Reference in a new issue