Add FTP_PASV_IP env var; expand PASV port range.

This commit is contained in:
Buster "Silver Eagle" Neece 2019-11-25 01:16:43 -06:00
parent 32f7d547e7
commit ea76e0cc6c
No known key found for this signature in database
GPG key ID: 6D9E12FF03411F4E
4 changed files with 7 additions and 2 deletions

2
.env
View file

@ -4,4 +4,4 @@ AZURACAST_HTTP_PORT=80
AZURACAST_HTTPS_PORT=443
AZURACAST_FTP_PORT=21
AZURACAST_FTP_PASV_RANGE=30000-30009
AZURACAST_FTP_PASV_RANGE=30000-30049

View file

@ -67,6 +67,10 @@ MYSQL_RANDOM_ROOT_PASSWORD=yes
# Advanced Configuration
#
# Override the IP/hostname to use when negotiating inbound FTP Passive Mode (PASV) connections.
# The system will attempt to automatically detect this, so you often don't need to change it.
# FTP_PASV_IP=localhost
# PHP's maximum POST body size and max upload filesize.
# PHP_MAX_FILE_SIZE=25M

View file

@ -31,6 +31,7 @@ services:
AZURACAST_FTP_PORT: ${AZURACAST_FTP_PORT:-21}
ports:
- '${AZURACAST_FTP_PORT:-21}:21'
- '${AZURACAST_FTP_PASV_RANGE:-30000-30049}:30000-30049' # FTP PASV support
volumes:
- .:/var/azuracast/www
- tmp_data:/var/azuracast/www_tmp

View file

@ -21,7 +21,7 @@ services:
- '${AZURACAST_HTTP_PORT:-80}:80'
- '${AZURACAST_HTTPS_PORT:-443}:443'
- '${AZURACAST_FTP_PORT:-21}:21'
- '30000-30009:30000-30009' # FTP PASV support
- '${AZURACAST_FTP_PASV_RANGE:-30000-30049}:30000-30049' # FTP PASV support
depends_on:
- mariadb
- influxdb