enable nginx_xaccel, etc
This commit is contained in:
parent
cf2406f6a6
commit
aab001fbc6
4
.env
4
.env
|
@ -1,4 +1,8 @@
|
|||
POSTGRES_USER=postgres
|
||||
POSTGRES_PASSWORD=password
|
||||
|
||||
OWNER_UID=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('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 &
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue