| |
@@ -142,6 +142,11 @@
|
| |
# Folder where to place the ssh keys for the mirroring feature
|
| |
MIRROR_SSHKEYS_FOLDER = "/var/lib/pagure/sshkeys/"
|
| |
|
| |
+ # Folder containing the pagure user SSH authorized keys
|
| |
+ SSH_FOLDER = os.path.join(
|
| |
+ os.path.abspath(os.path.dirname(__file__)), "..", "lcl", ".ssh"
|
| |
+ )
|
| |
+
|
| |
# Folder containing to the git repos
|
| |
# Note that this must be exactly the same as GL_REPO_BASE in gitolite.rc
|
| |
GIT_FOLDER = os.path.join(
|
| |
@@ -189,7 +194,7 @@
|
| |
|
| |
# Backend for git auth decisions
|
| |
# This may be either a static helper (like gitolite based) or dynamic.
|
| |
- GIT_AUTH_BACKEND = "gitolite3"
|
| |
+ GIT_AUTH_BACKEND = "pagure_authorized_keys"
|
| |
|
| |
# Legacy option name for GIT_AUTH_BACKEND, retained for backwards compatibility
|
| |
# This option overrides GIT_AUTH_BACKEND
|
| |
@@ -551,7 +556,7 @@
|
| |
# Whether to allow pushing via HTTP
|
| |
ALLOW_HTTP_PUSH = False
|
| |
# Path to Gitolite-shell if using that, None to use Git directly
|
| |
- HTTP_REPO_ACCESS_GITOLITE = "/usr/share/gitolite3/gitolite-shell"
|
| |
+ HTTP_REPO_ACCESS_GITOLITE = None
|
| |
|
| |
# repoSpanner integration settings
|
| |
# Path the the repoBridge binary
|
| |
@@ -621,12 +626,10 @@
|
| |
)
|
| |
SSH_COMMAND_NON_REPOSPANNER = (
|
| |
[
|
| |
- "/usr/share/gitolite3/gitolite-shell",
|
| |
- "%(username)s",
|
| |
- "%(cmd)s",
|
| |
- "%(reponame)s",
|
| |
+ "/usr/bin/%(cmd)s",
|
| |
+ os.path.join(GIT_FOLDER, "%(reponame)s"),
|
| |
],
|
| |
- {},
|
| |
+ {"GL_USER": "%(username)s"},
|
| |
)
|
| |
|
| |
CSP_HEADERS = (
|
| |
The Gitolite backend has turned into a rather difficult backend to support
by default. Among other things, newer versions of Gitolite seem to have
issues with parsing the configuration data generated by Pagure.
Combined with the performance issues for larger setups and the complexity
required to set up Pagure correctly with the Gitolite backend, it makes
sense to switch the default backend to the simpler, internal one.
Signed-off-by: Neal Gompa ngompa13@gmail.com