You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This mod introduces DISABLE_2FA parameter in [security] section
of app.ini (by default set to false). If set to true it disables access
to 2FA feature in user preferences (not required in some environments
i.e. when reverse proxy auth is used). Authentication code using 2FA and
any existing 2FA configuration are left untouched.
This mod hides also security tab in user preferences when openid is also
disabled; for this reason this mod is not separate PR but exiting PR
enhancement.
Author-Change-Id: IB#1105071
Copy file name to clipboardExpand all lines: custom/conf/app.example.ini
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -541,6 +541,8 @@ IMPORT_LOCAL_PATHS = false
541
541
; It also enables them to access other resources available to the user on the operating system that is running the Gitea instance and perform arbitrary actions in the name of the Gitea OS user.
542
542
; WARNING: This maybe harmful to you website or your operating system.
543
543
DISABLE_GIT_HOOKS = true
544
+
; Set to false to disable 2FA feature.
545
+
DISABLE_2FA = false
544
546
; Set to false to allow pushes to gitea repositories despite having an incomplete environment - NOT RECOMMENDED
545
547
ONLY_ALLOW_PUSH_IF_GITEA_ENVIRONMENT_SET = true
546
548
;Comma separated list of character classes required to pass minimum complexity.
Copy file name to clipboardExpand all lines: docs/content/doc/advanced/config-cheat-sheet.en-us.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -400,6 +400,7 @@ relation to port exhaustion.
400
400
It also enables them to access other resources available to the user on the operating system that is running the
401
401
Gitea instance and perform arbitrary actions in the name of the Gitea OS user.
402
402
This maybe harmful to you website or your operating system.
403
+
-`DISABLE_2FA`: **false**: Set to `true` to disable 2FA feature.
403
404
-`ONLY_ALLOW_PUSH_IF_GITEA_ENVIRONMENT_SET`: **true**: Set to `false` to allow local users to push to gitea-repositories without setting up the Gitea environment. This is not recommended and if you want local users to push to gitea repositories you should set the environment appropriately.
404
405
-`IMPORT_LOCAL_PATHS`: **false**: Set to `false` to prevent all users (including admin) from importing local path on server.
405
406
-`INTERNAL_TOKEN`: **\<random at every install if no uri set\>**: Secret used to validate communication within Gitea binary.
0 commit comments