mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 16:33:47 +03:00
fix language in comments
found through goreportcard.com
This commit is contained in:
parent
b0623e6038
commit
1f5ab1b795
4 changed files with 6 additions and 6 deletions
|
@ -136,12 +136,12 @@ type Listener struct {
|
||||||
Enabled bool
|
Enabled bool
|
||||||
Port int `sconf:"optional" sconf-doc:"Default 80."`
|
Port int `sconf:"optional" sconf-doc:"Default 80."`
|
||||||
Path string `sconf:"optional" sconf-doc:"Path to serve admin requests on, e.g. /moxadmin/. Useful if domain serves other resources. Default is /admin/."`
|
Path string `sconf:"optional" sconf-doc:"Path to serve admin requests on, e.g. /moxadmin/. Useful if domain serves other resources. Default is /admin/."`
|
||||||
} `sconf:"optional" sconf-doc:"Admin web interface, for managing domains, accounts, etc. Served at /admin/. Preferrably only enable on non-public IPs. Hint: use 'ssh -L 8080:localhost:80 you@yourmachine' and open http://localhost:8080/admin/, or set up a tunnel (e.g. WireGuard) and add its IP to the mox 'internal' listener."`
|
} `sconf:"optional" sconf-doc:"Admin web interface, for managing domains, accounts, etc. Served at /admin/. Preferably only enable on non-public IPs. Hint: use 'ssh -L 8080:localhost:80 you@yourmachine' and open http://localhost:8080/admin/, or set up a tunnel (e.g. WireGuard) and add its IP to the mox 'internal' listener."`
|
||||||
AdminHTTPS struct {
|
AdminHTTPS struct {
|
||||||
Enabled bool
|
Enabled bool
|
||||||
Port int `sconf:"optional" sconf-doc:"Default 443."`
|
Port int `sconf:"optional" sconf-doc:"Default 443."`
|
||||||
Path string `sconf:"optional" sconf-doc:"Path to serve admin requests on, e.g. /moxadmin/. Useful if domain serves other resources. Default is /admin/."`
|
Path string `sconf:"optional" sconf-doc:"Path to serve admin requests on, e.g. /moxadmin/. Useful if domain serves other resources. Default is /admin/."`
|
||||||
} `sconf:"optional" sconf-doc:"Admin web interface listener for HTTPS. Requires a TLS config. Preferrably only enable on non-public IPs."`
|
} `sconf:"optional" sconf-doc:"Admin web interface listener for HTTPS. Requires a TLS config. Preferably only enable on non-public IPs."`
|
||||||
MetricsHTTP struct {
|
MetricsHTTP struct {
|
||||||
Enabled bool
|
Enabled bool
|
||||||
Port int `sconf:"optional" sconf-doc:"Default 8010."`
|
Port int `sconf:"optional" sconf-doc:"Default 8010."`
|
||||||
|
|
|
@ -234,7 +234,7 @@ describe-static" and "mox config describe-domains":
|
||||||
Path:
|
Path:
|
||||||
|
|
||||||
# Admin web interface, for managing domains, accounts, etc. Served at /admin/.
|
# Admin web interface, for managing domains, accounts, etc. Served at /admin/.
|
||||||
# Preferrably only enable on non-public IPs. Hint: use 'ssh -L 8080:localhost:80
|
# Preferably only enable on non-public IPs. Hint: use 'ssh -L 8080:localhost:80
|
||||||
# you@yourmachine' and open http://localhost:8080/admin/, or set up a tunnel (e.g.
|
# you@yourmachine' and open http://localhost:8080/admin/, or set up a tunnel (e.g.
|
||||||
# WireGuard) and add its IP to the mox 'internal' listener. (optional)
|
# WireGuard) and add its IP to the mox 'internal' listener. (optional)
|
||||||
AdminHTTP:
|
AdminHTTP:
|
||||||
|
@ -247,7 +247,7 @@ describe-static" and "mox config describe-domains":
|
||||||
# resources. Default is /admin/. (optional)
|
# resources. Default is /admin/. (optional)
|
||||||
Path:
|
Path:
|
||||||
|
|
||||||
# Admin web interface listener for HTTPS. Requires a TLS config. Preferrably only
|
# Admin web interface listener for HTTPS. Requires a TLS config. Preferably only
|
||||||
# enable on non-public IPs. (optional)
|
# enable on non-public IPs. (optional)
|
||||||
AdminHTTPS:
|
AdminHTTPS:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
2
main.go
2
main.go
|
@ -992,7 +992,7 @@ WARNING: Bots will try to bruteforce your password. Connections with failed
|
||||||
authentication attempts will be rate limited but attackers WILL find weak
|
authentication attempts will be rate limited but attackers WILL find weak
|
||||||
passwords. If your account is compromised, spammers are likely to abuse your
|
passwords. If your account is compromised, spammers are likely to abuse your
|
||||||
system, spamming your address and the wider internet in your name. So please
|
system, spamming your address and the wider internet in your name. So please
|
||||||
pick a random, unguessable password, preferrably at least 12 characters.
|
pick a random, unguessable password, preferably at least 12 characters.
|
||||||
|
|
||||||
`)
|
`)
|
||||||
fmt.Printf("password: ")
|
fmt.Printf("password: ")
|
||||||
|
|
|
@ -84,7 +84,7 @@ func (l *Limiter) checkAdd(add bool, ip net.IP, tm time.Time, n int64) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset sets the counter to 0 for key and ip, and substracts from the ipmasked counts.
|
// Reset sets the counter to 0 for key and ip, and subtracts from the ipmasked counts.
|
||||||
func (l *Limiter) Reset(ip net.IP, tm time.Time) {
|
func (l *Limiter) Reset(ip net.IP, tm time.Time) {
|
||||||
l.Lock()
|
l.Lock()
|
||||||
defer l.Unlock()
|
defer l.Unlock()
|
||||||
|
|
Loading…
Reference in a new issue