turn URL config independent from SSL var
This commit is contained in:
parent
5e205c5468
commit
760322e55f
|
|
@ -76,7 +76,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 passbolt.local)
|
* URL: URL of the passbolt installation (defaults to http://passbolt.local)
|
||||||
|
|
||||||
### Database variables
|
### Database variables
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,16 +45,13 @@ core_setup() {
|
||||||
|
|
||||||
local default_salt='DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi'
|
local default_salt='DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi'
|
||||||
local default_seed='76859309657453542496749683645'
|
local default_seed='76859309657453542496749683645'
|
||||||
local default_url='passbolt.local'
|
local default_url='http://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
|
||||||
sed -i s:$default_seed:${CIPHERSEED:-$default_seed}:g $core_config
|
sed -i s:$default_seed:${CIPHERSEED:-$default_seed}:g $core_config
|
||||||
sed -i "/example.com/ s:\/\/::" $core_config
|
sed -i "/example.com/ s:\/\/::" $core_config
|
||||||
sed -i s:example.com:${URL:-$default_url}:g $core_config
|
sed -i "s|http://example.com|${URL:-$default_url}|g" $core_config
|
||||||
if [ "${SSL:-true}" != false ]; then
|
|
||||||
sed -i s:http:https:g $core_config
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
db_setup() {
|
db_setup() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue