add index.php redirecting to /tt-rss/

This commit is contained in:
Andrew Dolgov 2019-11-15 21:18:49 +03:00
parent 5896b15359
commit ec05907c94
3 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,7 @@ RUN apk add --no-cache php7 php7-fpm \
git postgresql-client dcron sudo
ADD startup.sh /
ADD index.php /
ADD scripts/update /etc/periodic/15min/
RUN sed -i.bak 's/^listen = 127.0.0.1:9000/listen = 9000/' /etc/php7/php-fpm.d/www.conf

3
app/index.php Normal file
View File

@ -0,0 +1,3 @@
<?php
header("Location: /tt-rss/");
return;

View File

@ -5,6 +5,8 @@ SRC_REPO=https://git.tt-rss.org/fox/tt-rss.git
export PGPASSWORD=$DB_PASS
[ ! -e /var/www/html/index.php ] && cp /index.php /var/www/html
PSQL="psql -q -h $DB_HOST -U $DB_USER $DB_NAME"
if [ ! -d $DST_DIR ]; then