forked from forgejo/forgejo
SSL enable config option
This commit is contained in:
parent
97e82a0ff6
commit
97debac185
12 changed files with 22 additions and 9 deletions
|
@ -38,6 +38,8 @@ var (
|
|||
RunUser string
|
||||
RepoRootPath string
|
||||
|
||||
EnableHttpsClone bool
|
||||
|
||||
LogInRememberDays int
|
||||
CookieUserName string
|
||||
CookieRememberName string
|
||||
|
@ -260,6 +262,8 @@ func NewConfigContext() {
|
|||
SecretKey = Cfg.MustValue("security", "SECRET_KEY")
|
||||
RunUser = Cfg.MustValue("", "RUN_USER")
|
||||
|
||||
EnableHttpsClone = Cfg.MustBool("security", "ENABLE_HTTPS_CLONE", false)
|
||||
|
||||
LogInRememberDays = Cfg.MustInt("security", "LOGIN_REMEMBER_DAYS")
|
||||
CookieUserName = Cfg.MustValue("security", "COOKIE_USERNAME")
|
||||
CookieRememberName = Cfg.MustValue("security", "COOKIE_REMEMBER_NAME")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue