smtp4dev icon indicating copy to clipboard operation
smtp4dev copied to clipboard

[Feature] Added webui port to appsettings.json

Open Bootta11 opened this issue 4 years ago • 1 comments

I have problem with overlapping port on smtp4dev and other app, please add webui port to appsettings.json config so it can be changed from predefined 5000.

Bootta11 avatar Nov 03 '20 19:11 Bootta11

You can set custom port when starting the app. I have set it in the {PathToExe} when installing windows service:

C:\your\path\Rnwood.Smtp4dev.exe --service --server.urls "http://0.0.0.0:5001/"

andy250 avatar Feb 19 '21 10:02 andy250

This would be a great feature. I would like to run it as https so I can use it my chrome. Would be nice to be able to just type smtp4dev in my commandline instead of remembering to add the switch.

Welchen avatar Apr 24 '24 17:04 Welchen

I totally agree. We are abou tot run smtp4dev in an OpenShift cluster whic does not allow root containers, so we cannot use port 80 for Kestrel and we do not intend to change the Dockerfile as well.

We can set ports for smtp and imap in the env vars like

        - name: ServerOptions__Port
          value: '1025'
        - name: ServerOptions__ImapPort
          value: '1143'

but it seems there's no option for http port.

fjakop avatar May 06 '24 06:05 fjakop

This has been implemented in PR #1462.

Please see the settings file (and existing --urls command line option) for info.

rnwood avatar May 06 '24 16:05 rnwood