add the possibility to run without TLS for testing locally

This commit is contained in:
Mathilde Grünig 2023-07-07 11:52:32 +02:00
parent 8ce3891c0b
commit aee32e0e78
1 changed files with 2 additions and 2 deletions

View File

@ -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