fix: Update script to replace ${DEFAULT_EMAIL} in authelia users database
- Add sed replacement for ${DEFAULT_EMAIL} with actual admin email
- Ensures email addresses are properly configured during deployment
This commit is contained in:
@@ -1,23 +0,0 @@
|
|||||||
Install script testing results
|
|
||||||
|
|
||||||
Installed debian to start from scratch.
|
|
||||||
|
|
||||||
Install Nvidia driver failed in setup-homelab.scratch
|
|
||||||
Attempted to follow manual directions, manual directions missing how to generate the authelia secrets
|
|
||||||
script didn't generate
|
|
||||||
AUTHELIA_JWT_SECRET=generate-with-openssl-rand-hex-64
|
|
||||||
AUTHELIA_SESSION_SECRET=generate-with-openssl-rand-hex-64
|
|
||||||
AUTHELIA_STORAGE_ENCRYPTION_KEY=generate-with-openssl-rand-hex-64
|
|
||||||
|
|
||||||
in setup-homelab.sh
|
|
||||||
commented out the apt install nvidia lines
|
|
||||||
script completed successfully, but still missing authelia secrets
|
|
||||||
|
|
||||||
ran deploy script, it completed successfully as well.
|
|
||||||
however missing authelia secrets prevents proxy access
|
|
||||||
|
|
||||||
Fix setup and deploy scripts to ensure an effortless install from scratch for the user experience.
|
|
||||||
Confirm they work as intended, and services are available by proxy url.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -6,7 +6,7 @@ users:
|
|||||||
kelin:
|
kelin:
|
||||||
displayname: "Admin User"
|
displayname: "Admin User"
|
||||||
password: "$argon2id$v=19$m=65536,t=3,p=4$a+3pIrywP/li9wy9J6UkMA$+3THyJiAnS/gNYnLaYtlsRCaYfgnnxsUyGZ4D3xGnUg"
|
password: "$argon2id$v=19$m=65536,t=3,p=4$a+3pIrywP/li9wy9J6UkMA$+3THyJiAnS/gNYnLaYtlsRCaYfgnnxsUyGZ4D3xGnUg"
|
||||||
email: kelinfoxy@gmail.com
|
email: ${DEFAULT_EMAIL}
|
||||||
groups:
|
groups:
|
||||||
- admins
|
- admins
|
||||||
- users
|
- users
|
||||||
|
|||||||
@@ -367,6 +367,7 @@ perform_deployment() {
|
|||||||
sed -i "s|\${AUTHELIA_STORAGE_ENCRYPTION_KEY}|${AUTHELIA_STORAGE_ENCRYPTION_KEY}|g" /opt/stacks/core/authelia/configuration.yml
|
sed -i "s|\${AUTHELIA_STORAGE_ENCRYPTION_KEY}|${AUTHELIA_STORAGE_ENCRYPTION_KEY}|g" /opt/stacks/core/authelia/configuration.yml
|
||||||
sed -i "s/admin/${AUTHELIA_ADMIN_USER}/g" /opt/stacks/core/authelia/users_database.yml
|
sed -i "s/admin/${AUTHELIA_ADMIN_USER}/g" /opt/stacks/core/authelia/users_database.yml
|
||||||
sed -i "s/admin@example.com/${AUTHELIA_ADMIN_EMAIL}/g" /opt/stacks/core/authelia/users_database.yml
|
sed -i "s/admin@example.com/${AUTHELIA_ADMIN_EMAIL}/g" /opt/stacks/core/authelia/users_database.yml
|
||||||
|
sed -i "s/\${DEFAULT_EMAIL}/${AUTHELIA_ADMIN_EMAIL}/g" /opt/stacks/core/authelia/users_database.yml
|
||||||
sed -i "s|\$argon2id\$v=19\$m=65536,t=3,p=4\$CHANGEME|${AUTHELIA_ADMIN_PASSWORD}|g" /opt/stacks/core/authelia/users_database.yml
|
sed -i "s|\$argon2id\$v=19\$m=65536,t=3,p=4\$CHANGEME|${AUTHELIA_ADMIN_PASSWORD}|g" /opt/stacks/core/authelia/users_database.yml
|
||||||
|
|
||||||
# Deploy core stack
|
# Deploy core stack
|
||||||
|
|||||||
Reference in New Issue
Block a user