Same-site redirects are now relative paths, and a saved page on another site is ignored. The HTTP to HTTPS redirect takes its host from the new SITE_URL setting, and without it the pages refuse plain HTTP.
29 lines
938 B
Bash
29 lines
938 B
Bash
# Copy this file to .env and fill in the values. Git does not track .env.
|
|
# To keep the file outside the web root, set XXX_ENV_FILE to its path.
|
|
|
|
# MySQL connection
|
|
DB_HOST=localhost
|
|
DB_USER=xxx
|
|
DB_PASS=
|
|
DB_NAME=xxx
|
|
|
|
# Address of the site. The pages send plain HTTP requests to this host
|
|
# over HTTPS. If it is empty, the pages refuse plain HTTP.
|
|
SITE_URL=https://xxx.org.za
|
|
|
|
# Google reCAPTCHA v2 keys (https://www.google.com/recaptcha/admin).
|
|
# Leave RECAPTCHA_SITE_KEY empty to turn the captcha off.
|
|
RECAPTCHA_SITE_KEY=
|
|
RECAPTCHA_SECRET=
|
|
|
|
# Google Analytics tracking ID. Leave it empty to turn analytics off.
|
|
GOOGLE_ANALYTICS_ID=
|
|
|
|
# Directory for uploaded images waiting to be saved. Keep it outside the
|
|
# web root. The default is xxx-uploads in the system temporary directory.
|
|
UPLOAD_DIR=
|
|
|
|
# Show PHP errors in the page (1) or on stderr (stderr). Leave it empty in
|
|
# production: errors always go to the PHP error log.
|
|
DISPLAY_ERRORS=
|