This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 93415467 Add SVN testing appendix
93415467 is described below
commit 93415467030506c727c034c67406c6cb8024565e
Author: Sebb <[email protected]>
AuthorDate: Fri Jan 19 13:35:53 2024 +0000
Add SVN testing appendix
---
tools/mkconf.rb | 32 +++++++++++++++++++++++++++++---
1 file changed, 29 insertions(+), 3 deletions(-)
diff --git a/tools/mkconf.rb b/tools/mkconf.rb
index 8d2d6c0f..ef27d662 100755
--- a/tools/mkconf.rb
+++ b/tools/mkconf.rb
@@ -47,9 +47,35 @@ end
conf.sub! 'wss://', 'ws://'
-conf.gsub! /AuthLDAPUrl .*/, 'AuthLDAPUrl "ldaps://<%=
ldaphosts%>/ou=people,dc=apache,dc=org?uid"'
-conf.gsub! /AuthLDAPBindDN .*/, 'AuthLDAPBindDN <%= ldapbinddn%>'
-conf.gsub! /AuthLDAPBindPassword .*/, 'AuthLDAPBindPassword "<%= ldapbindpw%>"'
+conf.gsub! /AuthLDAPUrl .*/, 'AuthLDAPUrl "ldaps://<%= ldaphosts
%>/ou=people,dc=apache,dc=org?uid"'
+conf.gsub! /AuthLDAPBindDN .*/, 'AuthLDAPBindDN <%= ldapbinddn %>'
+conf.gsub! /AuthLDAPBindPassword .*/, 'AuthLDAPBindPassword "<%= ldapbindpw
%>"'
+
+appendix="""
+# Needs libapache2-mod-svn to be installed
+# These are separate repos, as per the real ones
+<Location /repos/asf>
+ DAV svn
+ SVNPath /srv/REPO/asf
+ SetOutputFilter DEFLATE
+</Location>
+
+<Location /repos/infra>
+ DAV svn
+ SVNPath /srv/REPO/infra
+ SetOutputFilter DEFLATE
+</Location>
+
+<Location /repos/private>
+ DAV svn
+ SVNPath /srv/REPO/private
+ SetOutputFilter DEFLATE
+</Location>
+
+</VirtualHost>
+"""
+
+conf.sub! '</VirtualHost>', appendix
if ARGV.empty?
puts conf