|
@@ -38,7 +38,6 @@ const (
|
|
|
defaultCertFile = ""
|
|
defaultCertFile = ""
|
|
|
defaultKeyFile = ""
|
|
defaultKeyFile = ""
|
|
|
defaultCertDomain = ""
|
|
defaultCertDomain = ""
|
|
|
- defaultCertCache = "/tmp/cert_cache"
|
|
|
|
|
defaultCleanupFrequencyHours = 24
|
|
defaultCleanupFrequencyHours = 24
|
|
|
defaultCleanupArchiveReadDays = 60
|
|
defaultCleanupArchiveReadDays = 60
|
|
|
defaultCleanupArchiveUnreadDays = 180
|
|
defaultCleanupArchiveUnreadDays = 180
|
|
@@ -93,7 +92,6 @@ type Options struct {
|
|
|
listenAddr string
|
|
listenAddr string
|
|
|
certFile string
|
|
certFile string
|
|
|
certDomain string
|
|
certDomain string
|
|
|
- certCache string
|
|
|
|
|
certKeyFile string
|
|
certKeyFile string
|
|
|
cleanupFrequencyHours int
|
|
cleanupFrequencyHours int
|
|
|
cleanupArchiveReadDays int
|
|
cleanupArchiveReadDays int
|
|
@@ -150,7 +148,6 @@ func NewOptions() *Options {
|
|
|
listenAddr: defaultListenAddr,
|
|
listenAddr: defaultListenAddr,
|
|
|
certFile: defaultCertFile,
|
|
certFile: defaultCertFile,
|
|
|
certDomain: defaultCertDomain,
|
|
certDomain: defaultCertDomain,
|
|
|
- certCache: defaultCertCache,
|
|
|
|
|
certKeyFile: defaultKeyFile,
|
|
certKeyFile: defaultKeyFile,
|
|
|
cleanupFrequencyHours: defaultCleanupFrequencyHours,
|
|
cleanupFrequencyHours: defaultCleanupFrequencyHours,
|
|
|
cleanupArchiveReadDays: defaultCleanupArchiveReadDays,
|
|
cleanupArchiveReadDays: defaultCleanupArchiveReadDays,
|
|
@@ -266,11 +263,6 @@ func (o *Options) CertDomain() string {
|
|
|
return o.certDomain
|
|
return o.certDomain
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// CertCache returns the directory to use for Let's Encrypt session cache.
|
|
|
|
|
-func (o *Options) CertCache() string {
|
|
|
|
|
- return o.certCache
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
// CleanupFrequencyHours returns the interval in hours for cleanup jobs.
|
|
// CleanupFrequencyHours returns the interval in hours for cleanup jobs.
|
|
|
func (o *Options) CleanupFrequencyHours() int {
|
|
func (o *Options) CleanupFrequencyHours() int {
|
|
|
return o.cleanupFrequencyHours
|
|
return o.cleanupFrequencyHours
|
|
@@ -466,7 +458,6 @@ func (o *Options) SortedOptions() []*Option {
|
|
|
"BASE_PATH": o.basePath,
|
|
"BASE_PATH": o.basePath,
|
|
|
"BASE_URL": o.baseURL,
|
|
"BASE_URL": o.baseURL,
|
|
|
"BATCH_SIZE": o.batchSize,
|
|
"BATCH_SIZE": o.batchSize,
|
|
|
- "CERT_CACHE": o.certCache,
|
|
|
|
|
"CERT_DOMAIN": o.certDomain,
|
|
"CERT_DOMAIN": o.certDomain,
|
|
|
"CERT_FILE": o.certFile,
|
|
"CERT_FILE": o.certFile,
|
|
|
"CLEANUP_ARCHIVE_READ_DAYS": o.cleanupArchiveReadDays,
|
|
"CLEANUP_ARCHIVE_READ_DAYS": o.cleanupArchiveReadDays,
|