File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ Config file is loaded from one of the following locations.
43
43
- ` .smtpbridge.yml `
44
44
- ` ~/.smtpbridge.yaml `
45
45
- ` ~/.smtpbridge.yml `
46
+ - ` /etc/smtpbridge.yaml `
47
+ - ` /etc/smtpbridge.yml `
46
48
47
49
### Starter Config
48
50
60
62
### Full Config
61
63
62
64
` ` ` yaml
63
- # Max message size for envelopes
65
+ # Maximum message size for envelopes
64
66
max_payload_size : 25 MB
65
67
66
68
# Directory for storing data
@@ -191,7 +193,6 @@ docker run -d \
191
193
- Reload on config change
192
194
- Add [Apprise](https://github.com/caronc/apprise) endpoint
193
195
- HTTP and SMTP auth
194
- - Remove placeholder [Pico CSS](https://picocss.com/) for custom CSS
195
196
- Better HTTP error handling with [HTMX](https://htmx.org/)
196
197
- CRUD endpoints and rules
197
198
- SQLite full text search
Original file line number Diff line number Diff line change @@ -183,13 +183,16 @@ type RawRule struct {
183
183
func Read (cli CLI ) (Raw , error ) {
184
184
var configFiles []string
185
185
if cli .Config == nil {
186
+ // DEPS: ../README.md
186
187
configFile , err := resolve ([]string {
187
188
"config.yaml" ,
188
189
"config.yml" ,
189
190
".smtpbridge.yaml" ,
190
191
".smtpbridge.yml" ,
191
192
"~/.smtpbridge.yaml" ,
192
193
"~/.smtpbridge.yml" ,
194
+ "/etc/smtpbridge.yaml" ,
195
+ "/etc/smtpbridge.yml" ,
193
196
})
194
197
if err != nil {
195
198
return Raw {}, err
@@ -258,10 +261,10 @@ type CLI struct {
258
261
DataDirectory string `name:"data-directory" help:"Path to data directory." type:"path"`
259
262
SMTPDisable * bool `name:"smtp-disable" help:"Disable SMTP server."`
260
263
SMTPHost * string `name:"smtp-host" help:"SMTP host address to listen on."`
261
- SMTPPort * uint16 `name:"smtp-port" help:"SMTP port to listen on"`
264
+ SMTPPort * uint16 `name:"smtp-port" help:"SMTP port to listen on. "`
262
265
HTTPDisable * bool `name:"http-disable" help:"Disable HTTP server."`
263
266
HTTPHost * string `name:"http-host" help:"HTTP host address to listen on."`
264
- HTTPPort * uint16 `name:"http-port" help:"HTTP port to listen on"`
267
+ HTTPPort * uint16 `name:"http-port" help:"HTTP port to listen on. "`
265
268
Version bool `name:"version" help:"Show version."`
266
269
}
267
270
You can’t perform that action at this time.
0 commit comments