Defaults and start of config

This commit is contained in:
mStar 2024-05-31 17:21:29 +02:00
parent 3086b0e9b4
commit 1fbdf7fc9d
6 changed files with 128 additions and 10 deletions

26
config/config.go Normal file
View file

@ -0,0 +1,26 @@
package config
type ConfigSSL struct {
HandleSSL bool // Whether Linstrom should handle SSL encryption itself
// If Linstrom is to handle SSL, whether it should use LetsEncrypt for certificates
UseLetsEncrypt *bool
// Path to the certificate if Linstrom is to handle SSL while not using LetsEncrypt
CertificateFile *string
// Mail adress to use in case of using LetsEncrypt
AdminMail *string
}
type ConfigGeneral struct {
Domain string // The domain this server operates under
}
type ConfigAdmin struct {
Username string
PasswordHash string
}
type Config struct {
General ConfigGeneral
SSL ConfigSSL
Admin ConfigAdmin
}