From 176731e3fb1a6f01ccfcc16b2c06a351f0805886 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 19 Jan 2020 13:08:54 +0300 Subject: [PATCH] SELF_URL_PATH-related updates/clarification --- .env-dist | 5 ++++- README.md | 2 +- docker-compose.yml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.env-dist b/.env-dist index b56ad10..b47ed84 100644 --- a/.env-dist +++ b/.env-dist @@ -9,9 +9,12 @@ OWNER_GID=1000 HTTP_HOST=localhost +# You will likely need to set this to the correct value, see README.md +# for more information. +SELF_URL_PATH=http://$HTTP_HOST:8280/ + # bind exposed port to 127.0.0.1 by default in case reverse proxy is used. # if you plan to run the container standalone and need origin port exposed # use next HTTP_PORT definition (or remove "127.0.0.1:"). - HTTP_PORT=127.0.0.1:8280 #HTTP_PORT=8280 diff --git a/README.md b/README.md index 870ee7c..84b1fa1 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ URL as seen when opening it in your web browser. If this field is set incorrectl likely see the correct value in the tt-rss fatal error message. Note: ``SELF_URL_PATH`` is updated in generated tt-rss ``config.php`` automatically on container -restart. +restart. You don't need to modify ``config.php`` manually for this. * By default, container binds to **localhost** port **8280**. If you want the container to be accessible on the net, without using a reverse proxy sharing same host, you will need to diff --git a/docker-compose.yml b/docker-compose.yml index 95107ff..4b769a2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,7 +29,7 @@ services: - DB_PASS=${POSTGRES_PASSWORD} - OWNER_UID=${OWNER_UID} - OWNER_GID=${OWNER_GID} - - SELF_URL_PATH=http://${HTTP_HOST}:${HTTP_PORT}/tt-rss + - SELF_URL_PATH=${SELF_URL_PATH} volumes: - app:/var/www/html depends_on: