diff --git a/Home.md b/Home.md index 36db666..f462a20 100644 --- a/Home.md +++ b/Home.md @@ -46,6 +46,8 @@ Copy and/or git clone any third party plugins into ``plugins.local`` as usual. A common pattern is shared nginx doing SSL termination, etc. +Nginx: + ```nginx location /tt-rss/ { proxy_set_header Host $host; @@ -85,6 +87,20 @@ You will need to set ``SELF_URL_PATH`` to a correct (i.e. visible from the outsi - You can use nginx frontend instead of Caddy by uncommenting ``web-nginx`` container in ``docker-compose.yml``. - Alternatively, replace web container source image with ``jessestuart/caddy`` (note that it has telemetry enabled). +### Backing up the database + +You can use something like this: + +```sh +source .env +docker-compose exec db /bin/bash \ + -c "export PGPASSWORD=$POSTGRES_PASSWORD \ + && pg_dump -U $POSTGRES_USER $POSTGRES_USER" \ + | gzip -9 > backup.sql.gz +``` + +(https://community.tt-rss.org/t/docker-compose-tt-rss/2894/233?u=fox) + ## TODO See [TODO](wiki/TODO). \ No newline at end of file