-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Is your feature request related to a problem? Please describe.
I'm trying to place fail2web behind a reverse proxy.
Describe the solution you'd like
An additional environment variable to change the nginx listen port from the default port 80. Something like -
FAIL2WEB_PORT= or FAIL2WEB_LISTENPORT=
or if it could read and use the "ports" or "expose" yaml variables. I'm pretty new at docker, so not sure if that's possible.
Describe alternatives you've considered
I've tried making an entire custom .conf file and copying it into the container using the following-
volumes:
- ./nginx.vh.custom.conf:/tmp/conf.d/default.conf
command: /bin/ash -c 'cp /tmp/conf.d/default.conf /etc/nginx/conf.d/default.conf'
Doesn't work, error on my end I'm assuming, but it's not pretty anyway. Manually running the code does work, but it would be nice if it was automated and the file wasn't overwritten when running docker-compose up.
Additional context
None.