79
79
LandingPageURL LandingPage
80
80
UnixSocketPermission uint32
81
81
82
- SSH struct {
82
+ SSH = struct {
83
83
Disabled bool `ini:"DISABLE_SSH"`
84
84
StartBuiltinServer bool `ini:"START_SSH_SERVER"`
85
85
Domain string `ini:"SSH_DOMAIN"`
91
91
KeygenPath string `ini:"SSH_KEYGEN_PATH"`
92
92
MinimumKeySizeCheck bool `ini:"-"`
93
93
MinimumKeySizes map [string ]int `ini:"-"`
94
+ }{
95
+ Disabled : false ,
96
+ StartBuiltinServer : false ,
97
+ Domain : "localhost" ,
98
+ Port : 22 ,
99
+ KeygenPath : "ssh-keygen" ,
94
100
}
95
101
96
102
LFS struct {
@@ -948,25 +954,25 @@ func newSessionService() {
948
954
949
955
// Mailer represents mail service.
950
956
type Mailer struct {
951
- // Mailer
957
+ // Mailer
952
958
QueueLength int
953
959
Name string
954
960
From string
955
961
FromEmail string
956
962
EnableHTMLAlternative bool
957
963
958
964
// SMTP sender
959
- Host string
960
- User , Passwd string
961
- DisableHelo bool
962
- HeloHostname string
963
- SkipVerify bool
964
- UseCertificate bool
965
- CertFile , KeyFile string
965
+ Host string
966
+ User , Passwd string
967
+ DisableHelo bool
968
+ HeloHostname string
969
+ SkipVerify bool
970
+ UseCertificate bool
971
+ CertFile , KeyFile string
966
972
967
973
// Sendmail sender
968
- UseSendmail bool
969
- SendmailPath string
974
+ UseSendmail bool
975
+ SendmailPath string
970
976
}
971
977
972
978
var (
@@ -982,22 +988,22 @@ func newMailService() {
982
988
}
983
989
984
990
MailService = & Mailer {
985
- QueueLength : sec .Key ("SEND_BUFFER_LEN" ).MustInt (100 ),
986
- Name : sec .Key ("NAME" ).MustString (AppName ),
991
+ QueueLength : sec .Key ("SEND_BUFFER_LEN" ).MustInt (100 ),
992
+ Name : sec .Key ("NAME" ).MustString (AppName ),
987
993
EnableHTMLAlternative : sec .Key ("ENABLE_HTML_ALTERNATIVE" ).MustBool (),
988
994
989
- Host : sec .Key ("HOST" ).String (),
990
- User : sec .Key ("USER" ).String (),
991
- Passwd : sec .Key ("PASSWD" ).String (),
992
- DisableHelo : sec .Key ("DISABLE_HELO" ).MustBool (),
993
- HeloHostname : sec .Key ("HELO_HOSTNAME" ).String (),
994
- SkipVerify : sec .Key ("SKIP_VERIFY" ).MustBool (),
995
- UseCertificate : sec .Key ("USE_CERTIFICATE" ).MustBool (),
996
- CertFile : sec .Key ("CERT_FILE" ).String (),
997
- KeyFile : sec .Key ("KEY_FILE" ).String (),
998
-
999
- UseSendmail : sec .Key ("USE_SENDMAIL" ).MustBool (),
1000
- SendmailPath : sec .Key ("SENDMAIL_PATH" ).MustString ("sendmail" ),
995
+ Host : sec .Key ("HOST" ).String (),
996
+ User : sec .Key ("USER" ).String (),
997
+ Passwd : sec .Key ("PASSWD" ).String (),
998
+ DisableHelo : sec .Key ("DISABLE_HELO" ).MustBool (),
999
+ HeloHostname : sec .Key ("HELO_HOSTNAME" ).String (),
1000
+ SkipVerify : sec .Key ("SKIP_VERIFY" ).MustBool (),
1001
+ UseCertificate : sec .Key ("USE_CERTIFICATE" ).MustBool (),
1002
+ CertFile : sec .Key ("CERT_FILE" ).String (),
1003
+ KeyFile : sec .Key ("KEY_FILE" ).String (),
1004
+
1005
+ UseSendmail : sec .Key ("USE_SENDMAIL" ).MustBool (),
1006
+ SendmailPath : sec .Key ("SENDMAIL_PATH" ).MustString ("sendmail" ),
1001
1007
}
1002
1008
MailService .From = sec .Key ("FROM" ).MustString (MailService .User )
1003
1009
0 commit comments