Browse Source

Adjust the pagure config in vagrant to deploy with the new backend by default

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Pierre-Yves Chibon 3 years ago
parent
commit
15710f042b
1 changed files with 13 additions and 0 deletions
  1. 13 0
      dev/ansible/roles/pagure-dev/files/pagure.cfg

+ 13 - 0
dev/ansible/roles/pagure-dev/files/pagure.cfg

@@ -55,6 +55,19 @@ REMOTE_GIT_FOLDER = os.path.join(STORAGE_ROOT, 'remotes')
 ### Whether to enable scanning for viruses in attachments
 VIRUS_SCAN_ATTACHMENTS = False
 
+SSH_FOLDER = "/srv/git/.ssh/"
+
+GIT_AUTH_BACKEND = "pagure_authorized_keys"
+
+SSH_KEYS_OPTIONS = (
+    'restrict,command="/usr/bin/python3 /srv/pagure/files/aclchecker.py %(username)s"'
+)
+
+SSH_COMMAND_NON_REPOSPANNER = ([
+    "/usr/bin/%(cmd)s",
+    "/srv/git/repositories/%(reponame)s",
+], {"GL_USER": "%(username)s"})
+
 
 # SSH Information