Preview User
For initial protection, every website created via the Cockpit has password protection enabled by default.
Via our Cockpit, you can configure the password protection to your needs as described below:
Activation / Deactivation
As soon as the Enable password protection checkbox for a website in the Cockpit is set, the website is protected from unauthorized access from the outside.
When creating a new website, this checkbox is active by default and a user named preview
with a random password is configured.
You can modify both the username and password for this preview user to your needs by entering the values or let the cockpit generate a new random password.
To disable the password protection (e.g. when going live with a website), you can deactivate the checkbox Enable password protection for the website in the Cockpit.
Additional Users
Via the Cockpit, each website can be configured with only one preview user. Configuring the same preview user/password for each website can be both cumersome and error prone.
To add additional and consistent users for all websites on a given server, or all websites across all servers for a customer, you can set the website::users
hash within the Custom JSON Server Level Configuration.
You can use those users for yourself and your co-workers to log in to all protected websites without having to configure and remember the password for each individual one.
{
"website::users": {
"alice": {
"preview": "$apr1$RXDs3l18$w0VJrVN5uoU6DMY.0xgTr/"
},
"bob": {
"preview": "$apr1$RSDdas2323$23case23DCDMY.0xgTr/"
}
}
}
Tip
The passwords configured here must be hashed with the crypt, apr1 or SSHA algorithm