mirror of https://github.com/xwiki-labs/cryptpad
add the possibility to run without TLS for testing locally
This commit is contained in:
parent
8ce3891c0b
commit
aee32e0e78
|
@ -21,8 +21,8 @@ if [ ! -f "$CPAD_CONF" ]; then
|
|||
|
||||
cp "$CPAD_HOME"/config/config.example.js "$CPAD_CONF"
|
||||
|
||||
sed -i -e "s@\(httpUnsafeOrigin:\).*[^,]@\1 'https://$CPAD_MAIN_DOMAIN'@" \
|
||||
-e "s@\(^ *\).*\(httpSafeOrigin:\).*[^,]@\1\2 'https://$CPAD_SANDBOX_DOMAIN'@" $CPAD_CONF
|
||||
sed -i -e "s@\(httpUnsafeOrigin:\).*[^,]@\1 '$CPAD_MAIN_DOMAIN'@" \
|
||||
-e "s@\(^ *\).*\(httpSafeOrigin:\).*[^,]@\1\2 '$CPAD_SANDBOX_DOMAIN'@" $CPAD_CONF
|
||||
fi
|
||||
|
||||
cd $CPAD_HOME
|
||||
|
|
Loading…
Reference in New Issue