diff options
author | Runxi Yu <me@runxiyu.org> | 2025-01-12 05:20:15 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-01-12 05:20:15 +0800 |
commit | 91a5a9db9a5d55b3ff577d6aa61f16f7a934f1dc (patch) | |
tree | 1e18ab9c882d3f06a40dbbb78e4c31981aea62af | |
parent | incoming -> deliver_dir (diff) | |
download | maild-91a5a9db9a5d55b3ff577d6aa61f16f7a934f1dc.tar.gz maild-91a5a9db9a5d55b3ff577d6aa61f16f7a934f1dc.tar.zst maild-91a5a9db9a5d55b3ff577d6aa61f16f7a934f1dc.zip |
Add TLS cert configuration handling
-rw-r--r-- | config.go | 4 | ||||
-rw-r--r-- | maild.scfg | 5 |
2 files changed, 9 insertions, 0 deletions
@@ -11,6 +11,10 @@ import ( var config struct { Server_name string `scfg:"server_name"` Routes map[string]string `scfg:"routes"` + TLS struct { + Cert string `scfg:"cert"` + Key string `scfg:"key"` + } `scfg:"tls"` } var config_mutex sync.RWMutex @@ -5,3 +5,8 @@ routes { test@andrewyu.org /home/runxiyu/inbox adeline@andrewyu.org /home/runxiyu/inbox } + +tls { + cert /etc/tls/cert.pem + key /etc/tls/privkey.pem +} |