diff --git a/doc/configuration.rst b/doc/configuration.rst index 8010ab9..117d08e 100644 --- a/doc/configuration.rst +++ b/doc/configuration.rst @@ -589,6 +589,17 @@ prevent users from deleting branches in their git repositories. Defaults to: ``True``. +======= +LOCAL_SSH_KEY +~~~~~~~~~~~~~ + +This configuration key allows to let pagure administrate the user's ssh keys +or have a third party tool do it for you. +In most cases, it will be fine to let pagure handle it. + +Defaults to ``True``. + + OLD_VIEW_COMMIT_ENABLED ~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/pagure/default_config.py b/pagure/default_config.py index f69e788..5dd0813 100644 --- a/pagure/default_config.py +++ b/pagure/default_config.py @@ -68,6 +68,9 @@ PRIVATE_PROJECTS = False # Enable / Disable deleting branches in the UI ALLOW_DELETE_BRANCH = True +# Enable / Disable having pagure manage the user's ssh keys +LOCAL_SSH_KEY = True + # Enables / Disables showing all the projects by default on the front page SHOW_PROJECTS_INDEX = ['repos', 'myrepos', 'myforks'] diff --git a/pagure/templates/user_settings.html b/pagure/templates/user_settings.html index 23c044a..eabe980 100644 --- a/pagure/templates/user_settings.html +++ b/pagure/templates/user_settings.html @@ -98,6 +98,7 @@ + {% if config.get('LOCAL_SSH_KEY', True) %}