1
0

Set SELF_URL_PATH on runtime

This commit is contained in:
Philipp Schmitt
2015-02-21 15:48:03 +01:00
parent d2e34cd59d
commit 968819a855
3 changed files with 15 additions and 1 deletions
+3 -1
View File
@@ -17,12 +17,14 @@ RUN rm /etc/nginx/sites-enabled/default
RUN git clone https://github.com/gothfox/Tiny-Tiny-RSS.git /var/www
WORKDIR /var/www
RUN cp config.php-dist config.php
RUN sed -i -e "/'SELF_URL_PATH'/s/ '.*'/ 'http:\/\/localhost\/'/" config.php
RUN chown www-data:www-data -R /var/www
# expose only nginx HTTP port
EXPOSE 80
# complete path to ttrss
ENV SELF_URL_PATH http://localhost
# expose default database credentials via ENV in order to ease overwriting
ENV DB_NAME ttrss
ENV DB_USER ttrss