Disabling SSL on the Front-End
Disable Back-end SSL on Front-end Clients
This is not recommended for production environments and might break,
throwing an http mixed content error.
FRONTEND_PATH="/var/lib/interlock/interlock_frontend"
# Disable Back-end SSL Communication
sed 's/\(\s\|\t\{0,\}\)"ssl":\s*true\(.*\)/\1"ssl": false\2/g' $FRONTEND_PATH/config/local.json
# Enable Back-end SSL Communication
sed 's/\(\s\|\t\{0,\}\)"ssl":\s*false\(.*\)/\1"ssl": true\2/g' $FRONTEND_PATH/config/local.json
Self-signed Certificate Exception
If you do not have a proper Let’s Encrypt or Paid SSL Certificate and your back-end URL is not the same as your Front-end, you’ll need to access your Backend URL before-hand and set an exception in your browser for the Axios requests to work.