diff --git a/README.md b/README.md index cdcb2ad..34b5b1d 100644 --- a/README.md +++ b/README.md @@ -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 | | ------------------ | ----------------------------------------------------------------------------------------- | diff --git a/app/__init__.py b/app/__init__.py index a6dbd38..3340150 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -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\';' \