diff --git a/README.md b/README.md index 53ff247..f6c3ab9 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ This repository contains a docker-compose setup as well as an [ansible](https:// support](https://docs.traefik.io/user-guide/docker-and-lets-encrypt/). An example to copy into the normal compose file is located at ``reverse-proxy-examples/docker-compose``. You can also find a few words on an nginx configuration at ``reverse-proxy-examples/nginx`` +* Make sure you serve all requests for the `/static/` and `/media/` paths (when `debug=false`). See [installation](https://docs.pretalx.org/administrator/installation/#step-7-ssl) for more information * Optional: To adjust the number of [Gunicorn workers](https://docs.gunicorn.org/en/stable/settings.html#workers), provide the container with `GUNICORN_WORKERS` environment variable. Similarly you can use `GUNICORN_MAX_REQUESTS` and `GUNICORN_MAX_REQUESTS_JITTER` to configure the requests a worker instance will process before restarting. `GUNICORN_FORWARDED_ALLOW_IPS` lets you specify which IPs to trust (i.e. which reverse proxies' `X-Forwarded-*` headers can be used to infer connection security). diff --git a/conf/pretalx.cfg b/conf/pretalx.cfg index b0cbf80..044ab12 100644 --- a/conf/pretalx.cfg +++ b/conf/pretalx.cfg @@ -2,7 +2,9 @@ # use PRETALX_FILESYSTEM_* env vars [site] -; never run debug in production +; never run debug in production. Make sure you serve all requests for the +; `/static/` and `/media/` paths when debug is False. +; See [installation](https://docs.pretalx.org/administrator/installation/#step-7-ssl) for more information debug = True url = http://localhost diff --git a/docker-compose.yml b/docker-compose.yml index 82ff75b..e3cfabc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,6 +8,7 @@ services: - redis - db environment: + # Hint: Make sure you serve all requests for the `/static/` and `/media/` paths when debug is False. See [installation](https://docs.pretalx.org/administrator/installation/#step-7-ssl) for more information PRETALX_FILESYSTEM_MEDIA: /public/media PRETALX_FILESYSTEM_STATIC: /public/static ports: