Merge remote-tracking branch 'origin/main' into heroku-app

This commit is contained in:
Ben Busby 2021-05-05 12:53:15 -04:00
commit efb44a2398
No known key found for this signature in database
GPG Key ID: 3B08611DF6E62ED2
2 changed files with 6 additions and 2 deletions

View File

@ -237,7 +237,11 @@ Depending on your preferences, you can also deploy the app yourself on your own
- A bit more experience or willingness to work through issues
## Environment Variables
There are a few optional environment variables available for customizing a Whoogle instance. These can be set manually, or copied into `whoogle.env` and enabled by setting `WHOOGLE_DOTENV=1`.
There are a few optional environment variables available for customizing a Whoogle instance. These can be set manually, or copied into `whoogle.env` and enabled for your preferred deployment method:
- Local runs: Set `WHOOGLE_DOTENV=1` before running
- With `docker-compose`: Uncomment the `env_file` option
- With `docker build/run`: Add `--env-file ./whoogle.env` to your command
| Variable | Description |
| ------------------ | ----------------------------------------------------------------------------------------- |

View File

@ -51,7 +51,7 @@ app.config['BANG_FILE'] = os.path.join(
'bangs.json')
app.config['CSP'] = 'default-src \'none\';' \
'manifest-src \'self\';' \
'img-src \'self\';' \
'img-src \'self\' data:;' \
'style-src \'self\' \'unsafe-inline\';' \
'script-src \'self\';' \
'media-src \'self\';' \