mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-16 10:37:28 -06:00
little fixes
This commit is contained in:
parent
d5c9c50e52
commit
f8a3dc1da7
2 changed files with 8 additions and 7 deletions
|
|
@ -55,12 +55,13 @@ func FromFile(path string) (*Config, error) {
|
||||||
// Empty just returns a new empty config
|
// Empty just returns a new empty config
|
||||||
func Empty() *Config {
|
func Empty() *Config {
|
||||||
return &Config{
|
return &Config{
|
||||||
DBConfig: &DBConfig{},
|
DBConfig: &DBConfig{},
|
||||||
TemplateConfig: &TemplateConfig{},
|
TemplateConfig: &TemplateConfig{},
|
||||||
AccountsConfig: &AccountsConfig{},
|
AccountsConfig: &AccountsConfig{},
|
||||||
MediaConfig: &MediaConfig{},
|
MediaConfig: &MediaConfig{},
|
||||||
StorageConfig: &StorageConfig{},
|
StorageConfig: &StorageConfig{},
|
||||||
StatusesConfig: &StatusesConfig{},
|
StatusesConfig: &StatusesConfig{},
|
||||||
|
LetsEncryptConfig: &LetsEncryptConfig{},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ func (r *router) Start() {
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
// and serve the actual TLS handler on port 443
|
// and serve the actual TLS handler on port 443
|
||||||
go func() {
|
go func() {
|
||||||
if err := r.srv.ListenAndServeTLS("", ""); err != nil && err != http.ErrServerClosed {
|
if err := r.srv.ListenAndServeTLS("", ""); err != nil && err != http.ErrServerClosed {
|
||||||
r.logger.Fatalf("listen: %s", err)
|
r.logger.Fatalf("listen: %s", err)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue