From d1fd6f4897b1e7891375c3b170e2cd8854836517 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 11 Jun 2015 13:31:40 +0200 Subject: [PATCH] Make URIs to the individual cgit pages configurable Make the locations of the PKGBUILD preview, the log and the snapshot tarball configurable. This increases flexibility and simplifies the code a bit. Signed-off-by: Lukas Fleischer --- conf/config.proto | 4 +++- web/template/pkg_details.php | 10 ++++++---- web/template/pkgbase_details.php | 10 ++++++---- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/conf/config.proto b/conf/config.proto index 94ef8e61..1d3e3291 100644 --- a/conf/config.proto +++ b/conf/config.proto @@ -18,7 +18,6 @@ persistent_cookie_timeout = 2592000 max_filesize_uncompressed = 8388608 disable_http_login = 1 aur_location = https://aur.archlinux.org -cgit_uri = https://aur.archlinux.org/cgit/aur.git git_clone_uri_anon = https://aur.archlinux.org/%s.git/ git_clone_uri_priv = ssh+git://aur@aur.archlinux.org/%s.git/ max_rpc_results = 5000 @@ -26,6 +25,9 @@ aur_request_ml = aur-requests@archlinux.org request_idle_time = 1209600 auto_orphan_age = 15552000 auto_delete_age = 86400 +pkgbuild_uri = https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=%s +log_uri = https://aur.archlinux.org/cgit/aur.git/log/?h=%s +snapshot_uri = https://aur.archlinux.org/cgit/aur.git/snapshot/%s.tar.gz [auth] valid-keytypes = ssh-rsa ssh-dss ecdsa-sha2-nistp256 ecdsa-sha2-nistp384 ecdsa-sha2-nistp521 ssh-ed25519 diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 7c68c308..e50f0293 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -1,6 +1,8 @@