rnwood / smtp4dev

smtp4dev - the fake smtp email server for development and testing
BSD 3-Clause "New" or "Revised" License
3.07k stars 344 forks source link

[Question] How to configure server.urls in Linux Docker Container? #219

Closed eamell closed 4 years ago

eamell commented 4 years ago

I have a Linux smtp4dev container running in Kubernetes and have an ingress (NGINX) front ending it. Unfortunately I do not see a way to set the server.urls so I can get the application to load. Is there an environment variable I can set?

Thank you!

eamell commented 4 years ago

If you like I can fork and make the change and do a pull request. It is relatively straight forward of a change. You just need to move the entry point to a shell script that will take in the appropriate environment variables and set them in the command line.

rnwood commented 4 years ago

Hi @eamell. Thanks for your question. Please can you post a snippet from your nginx config so I can understand what you're trying to achieve.