Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add maildev.json for quick project configuration #93

Open
djfarrelly opened this issue Nov 7, 2015 · 4 comments
Open

Add maildev.json for quick project configuration #93

djfarrelly opened this issue Nov 7, 2015 · 4 comments

Comments

@djfarrelly
Copy link
Member

So people can share maildev configurations across projects w/out the need for command line options. This would also deprecate the rules.json that a maildev user can use. Idea:

maildev.json

{
  "smtp": 1025,
  "web": 1080,
  "autoRelayRules": [
    { "allow": "*@allsafe.com" },
    { "deny":  "elliot@allsafe.com" },
    { "allow": "*@evilcorp.com" },
  ]
}

Thoughts or input are greatly appreciated!

@soullivaneuh
Copy link
Contributor

👍

This could be very useful because we can link our maildev.json configuration file with docker-compose (related to #100).

Maybe a .maildev.json would be better to not have the root project full of config files.

Another idea: Add an option to the binary to specify the json file to use.

@soullivaneuh
Copy link
Contributor

Which npm package could we use to parse a configuration file? Maybe I can work on it.

@soullivaneuh
Copy link
Contributor

Maybe this one: https://github.com/pilwon/node-get-config

@soullivaneuh
Copy link
Contributor

Actually, how the rules.json system works?

Found it: https://github.com/djfarrelly/MailDev/blob/bb40acbcf72817154d63fd1d6ecb8bc118f498d8/README.md#auto-relay-mode

But indeed, we can't configure all the maildev app with that.

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

No branches or pull requests

3 participants