@ -124,6 +124,7 @@ var (
ReverseProxyAuthUser string
ReverseProxyAuthUser string
MinPasswordLength int
MinPasswordLength int
ImportLocalPaths bool
ImportLocalPaths bool
DisableGitHooks bool
// Database settings
// Database settings
UseSQLite3 bool
UseSQLite3 bool
@ -817,6 +818,7 @@ func NewContext() {
ReverseProxyAuthUser = sec . Key ( "REVERSE_PROXY_AUTHENTICATION_USER" ) . MustString ( "X-WEBAUTH-USER" )
ReverseProxyAuthUser = sec . Key ( "REVERSE_PROXY_AUTHENTICATION_USER" ) . MustString ( "X-WEBAUTH-USER" )
MinPasswordLength = sec . Key ( "MIN_PASSWORD_LENGTH" ) . MustInt ( 6 )
MinPasswordLength = sec . Key ( "MIN_PASSWORD_LENGTH" ) . MustInt ( 6 )
ImportLocalPaths = sec . Key ( "IMPORT_LOCAL_PATHS" ) . MustBool ( false )
ImportLocalPaths = sec . Key ( "IMPORT_LOCAL_PATHS" ) . MustBool ( false )
DisableGitHooks = sec . Key ( "DISABLE_GIT_HOOKS" ) . MustBool ( false )
InternalToken = sec . Key ( "INTERNAL_TOKEN" ) . String ( )
InternalToken = sec . Key ( "INTERNAL_TOKEN" ) . String ( )
if len ( InternalToken ) == 0 {
if len ( InternalToken ) == 0 {
secretBytes := make ( [ ] byte , 32 )
secretBytes := make ( [ ] byte , 32 )