diff --git a/.env b/.env index c45332d..fb06b6d 100644 --- a/.env +++ b/.env @@ -1,4 +1,8 @@ POSTGRES_USER=postgres POSTGRES_PASSWORD=password + OWNER_UID=1000 OWNER_GID=1000 + +EXTERNAL_HOST=localhost +EXTERNAL_PORT=8280 \ No newline at end of file diff --git a/app/startup.sh b/app/startup.sh index 377a300..ffb662e 100755 --- a/app/startup.sh +++ b/app/startup.sh @@ -42,6 +42,11 @@ if [ ! -s $DST_DIR/config.php ]; then -e "s/define('PLUGINS'.*/define('PLUGINS', 'auth_internal, note, nginx_xaccel');/" \ -e "s/define('SELF_URL_PATH'.*/define('SELF_URL_PATH','$SELF_URL_PATH');/" \ < $DST_DIR/config.php-dist > $DST_DIR/config.php + + cat >> $DST_DIR/config.php << EOF + define('NGINX_XACCEL_PREFIX', '/tt-rss'); +EOF + fi crond & diff --git a/docker-compose.yml b/docker-compose.yml index 13ad3ee..97aebb8 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://localhost:8280/tt-rss + - SELF_URL_PATH=http://${EXTERNAL_HOST}:${EXTERNAL_PORT}/tt-rss volumes: - html:/var/www/html depends_on: @@ -39,7 +39,7 @@ services: build: ./web restart: unless-stopped ports: - - 8280:80 + - ${EXTERNAL_PORT}:80 volumes: - html:/var/www/html:ro depends_on: