2021-07-09 23:19:30 +02:00
|
|
|
package gmitohtml
|
2020-11-24 18:29:57 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
"crypto/tls"
|
|
|
|
)
|
|
|
|
|
2021-07-10 05:09:11 +02:00
|
|
|
type CertConfig struct {
|
2020-11-24 18:29:57 +01:00
|
|
|
Cert string
|
|
|
|
Key string
|
|
|
|
|
|
|
|
cert tls.Certificate
|
|
|
|
}
|
|
|
|
|
2021-07-10 05:09:11 +02:00
|
|
|
type AppConfig struct {
|
2020-11-27 05:43:03 +01:00
|
|
|
Bookmarks map[string]string
|
|
|
|
|
2021-06-09 01:19:26 +02:00
|
|
|
// Convert image links to images instead of normal links
|
|
|
|
ConvertImages bool
|
|
|
|
|
2021-07-10 05:09:11 +02:00
|
|
|
Certs map[string]*CertConfig
|
2020-11-24 18:29:57 +01:00
|
|
|
}
|
|
|
|
|
2021-07-10 05:09:11 +02:00
|
|
|
var Config = &AppConfig{
|
2020-11-27 05:43:03 +01:00
|
|
|
Bookmarks: make(map[string]string),
|
|
|
|
|
2021-07-10 05:09:11 +02:00
|
|
|
Certs: make(map[string]*CertConfig),
|
2020-11-27 05:43:03 +01:00
|
|
|
}
|