From 25dcf14c0af7b2879a6336ca199e0595a2b4775d Mon Sep 17 00:00:00 2001 From: Mathieu Bruyen Date: Sat, 15 Dec 2018 09:30:02 +0100 Subject: [PATCH] self url path --- Dockerfile | 2 +- config.php | 2 +- ttrss.conf => php-fpm.conf | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) rename ttrss.conf => php-fpm.conf (53%) diff --git a/Dockerfile b/Dockerfile index 03533e4..f9cb9c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,7 @@ RUN ln -sf /usr/bin/php7 /usr/bin/php EXPOSE 80 443 COPY nginx.conf /etc/nginx/conf.d/default.conf -COPY ttrss.conf /etc/php7/php-fpm.d/ttrss.conf +COPY php-fpm.conf /etc/php7/php-fpm.d/ttrss.conf COPY install-db.php /var/lib/tt-rss-install/install-db.php ADD https://git.tt-rss.org/fox/tt-rss/archive/18.12.tar.gz /tmp/ttrss.tar.gz diff --git a/config.php b/config.php index 14fed6b..0c8f12f 100644 --- a/config.php +++ b/config.php @@ -19,7 +19,7 @@ // *** Basic settings (important!) *** // *********************************** - define('SELF_URL_PATH', 'https://feeds.mais-h.eu'); + define('SELF_URL_PATH', getenv('SELF_URL_PATH')); // Full URL of your tt-rss installation. This should be set to the // location of tt-rss directory, e.g. http://example.org/tt-rss/ // You need to set this option correctly otherwise several features diff --git a/ttrss.conf b/php-fpm.conf similarity index 53% rename from ttrss.conf rename to php-fpm.conf index afda88d..a3ba0d9 100644 --- a/ttrss.conf +++ b/php-fpm.conf @@ -1,3 +1,4 @@ [www] env[DATABASE_URL] = $DATABASE_URL +env[SELF_URL_PATH] = $SELF_URL_PATH