mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-03-08 13:19:05 +00:00
Fix: Authelia - Make user enter their domain manually (#2618)
* Make user enter domain manually * Update json to remind user * Update authelia.json --------- Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com>
This commit is contained in:
parent
42ad6832ea
commit
377d11bf48
@ -26,15 +26,13 @@ wget -q "https://github.com/authelia/authelia/releases/download/${RELEASE}/authe
|
|||||||
$STD dpkg -i "authelia_${RELEASE}_amd64.deb"
|
$STD dpkg -i "authelia_${RELEASE}_amd64.deb"
|
||||||
msg_ok "Install Authelia completed"
|
msg_ok "Install Authelia completed"
|
||||||
|
|
||||||
|
read -p "Enter your domain (ex. example.com): " DOMAIN
|
||||||
|
|
||||||
msg_info "Setting Authelia up"
|
msg_info "Setting Authelia up"
|
||||||
touch /etc/authelia/emails.txt
|
touch /etc/authelia/emails.txt
|
||||||
JWT_SECRET=$(openssl rand -hex 64)
|
JWT_SECRET=$(openssl rand -hex 64)
|
||||||
SESSION_SECRET=$(openssl rand -hex 64)
|
SESSION_SECRET=$(openssl rand -hex 64)
|
||||||
STORAGE_KEY=$(openssl rand -hex 64)
|
STORAGE_KEY=$(openssl rand -hex 64)
|
||||||
DOMAIN=$(hostname -d)
|
|
||||||
if [ -z "$DOMAIN" ]; then
|
|
||||||
DOMAIN=$(hostname)
|
|
||||||
fi
|
|
||||||
cat <<EOF >/etc/authelia/users.yml
|
cat <<EOF >/etc/authelia/users.yml
|
||||||
users:
|
users:
|
||||||
authelia:
|
authelia:
|
||||||
|
@ -30,5 +30,10 @@
|
|||||||
"username": "authelia",
|
"username": "authelia",
|
||||||
"password": "authelia"
|
"password": "authelia"
|
||||||
},
|
},
|
||||||
"notes": []
|
"notes": [
|
||||||
|
{
|
||||||
|
"text": "During installation, you will have to input your domain (ex. domain.com). Authelia will use auth.domain.com",
|
||||||
|
"type": "info"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user