Skip to content

Environment variable for nginx port #2

Description

@ktonini

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions