enable nginx_xaccel, etc

remotes/origin/pgsql-count-bits-12
Andrew Dolgov 5 years ago
parent cf2406f6a6
commit aab001fbc6

@ -1,4 +1,8 @@
POSTGRES_USER=postgres POSTGRES_USER=postgres
POSTGRES_PASSWORD=password POSTGRES_PASSWORD=password
OWNER_UID=1000 OWNER_UID=1000
OWNER_GID=1000 OWNER_GID=1000
EXTERNAL_HOST=localhost
EXTERNAL_PORT=8280

@ -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('PLUGINS'.*/define('PLUGINS', 'auth_internal, note, nginx_xaccel');/" \
-e "s/define('SELF_URL_PATH'.*/define('SELF_URL_PATH','$SELF_URL_PATH');/" \ -e "s/define('SELF_URL_PATH'.*/define('SELF_URL_PATH','$SELF_URL_PATH');/" \
< $DST_DIR/config.php-dist > $DST_DIR/config.php < $DST_DIR/config.php-dist > $DST_DIR/config.php
cat >> $DST_DIR/config.php << EOF
define('NGINX_XACCEL_PREFIX', '/tt-rss');
EOF
fi fi
crond & crond &

@ -29,7 +29,7 @@ services:
- DB_PASS=${POSTGRES_PASSWORD} - DB_PASS=${POSTGRES_PASSWORD}
- OWNER_UID=${OWNER_UID} - OWNER_UID=${OWNER_UID}
- OWNER_GID=${OWNER_GID} - OWNER_GID=${OWNER_GID}
- SELF_URL_PATH=http://localhost:8280/tt-rss - SELF_URL_PATH=http://${EXTERNAL_HOST}:${EXTERNAL_PORT}/tt-rss
volumes: volumes:
- html:/var/www/html - html:/var/www/html
depends_on: depends_on:
@ -39,7 +39,7 @@ services:
build: ./web build: ./web
restart: unless-stopped restart: unless-stopped
ports: ports:
- 8280:80 - ${EXTERNAL_PORT}:80
volumes: volumes:
- html:/var/www/html:ro - html:/var/www/html:ro
depends_on: depends_on:

Loading…
Cancel
Save