Merge remote-tracking branch 'origin/main' into heroku-app
This commit is contained in:
commit
efb44a2398
|
@ -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
|
- A bit more experience or willingness to work through issues
|
||||||
|
|
||||||
## Environment Variables
|
## 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 |
|
| Variable | Description |
|
||||||
| ------------------ | ----------------------------------------------------------------------------------------- |
|
| ------------------ | ----------------------------------------------------------------------------------------- |
|
||||||
|
|
|
@ -51,7 +51,7 @@ app.config['BANG_FILE'] = os.path.join(
|
||||||
'bangs.json')
|
'bangs.json')
|
||||||
app.config['CSP'] = 'default-src \'none\';' \
|
app.config['CSP'] = 'default-src \'none\';' \
|
||||||
'manifest-src \'self\';' \
|
'manifest-src \'self\';' \
|
||||||
'img-src \'self\';' \
|
'img-src \'self\' data:;' \
|
||||||
'style-src \'self\' \'unsafe-inline\';' \
|
'style-src \'self\' \'unsafe-inline\';' \
|
||||||
'script-src \'self\';' \
|
'script-src \'self\';' \
|
||||||
'media-src \'self\';' \
|
'media-src \'self\';' \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user