better defaults for dummy domain example.com -> passbolt.local

This commit is contained in:
Diego Lendoiro 2017-07-31 11:51:39 +01:00
parent 31ebf7bf82
commit 746c28c84f
2 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ Passbolt docker image provides several environment variables to configure differ
* SALT: a random string used by cakephp in security hashing methods * SALT: a random string used by cakephp in security hashing methods
* CIPHERSEED: a random string used by cakephp to encrypt/decrypt strings * CIPHERSEED: a random string used by cakephp to encrypt/decrypt strings
* URL: URL of the passbolt installation (defaults to example.com) * URL: URL of the passbolt installation (defaults to passbolt.local)
### Database variables ### Database variables

View File

@ -45,7 +45,7 @@ core_setup() {
local default_salt='DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi' local default_salt='DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi'
local default_seed='76859309657453542496749683645' local default_seed='76859309657453542496749683645'
local default_url='example.com' local default_url='passbolt.local'
cp $core_config{.default,} cp $core_config{.default,}
sed -i s:$default_salt:${SALT:-$default_salt}:g $core_config sed -i s:$default_salt:${SALT:-$default_salt}:g $core_config
@ -131,7 +131,7 @@ email_setup() {
gen_ssl_cert() { gen_ssl_cert() {
openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 \ openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 \
-subj "/C=FR/ST=Denial/L=Springfield/O=Dis/CN=www.example.com" \ -subj "/C=FR/ST=Denial/L=Springfield/O=Dis/CN=www.passbolt.local" \
-keyout $ssl_key -out $ssl_cert -keyout $ssl_key -out $ssl_cert
} }