summaryrefslogtreecommitdiff
path: root/internal/config/letsencrypt.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config/letsencrypt.go')
-rw-r--r--internal/config/letsencrypt.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/config/letsencrypt.go b/internal/config/letsencrypt.go
index ae40cb878..a71172635 100644
--- a/internal/config/letsencrypt.go
+++ b/internal/config/letsencrypt.go
@@ -3,9 +3,11 @@ package config
// LetsEncryptConfig wraps everything needed to manage letsencrypt certificates from within gotosocial.
type LetsEncryptConfig struct {
// Should letsencrypt certificate fetching be enabled?
- Enabled bool
+ Enabled bool `yaml:"enabled"`
+ // What port should the server listen for letsencrypt challenges on?
+ Port int `yaml:"port"`
// Where should certificates be stored?
- CertDir string
+ CertDir string `yaml:"certDir"`
// Email address to pass to letsencrypt for notifications about certificate expiry etc.
- EmailAddress string
+ EmailAddress string `yaml:"emailAddress"`
}