Installing WebSVN
July 21st, 2020 9:36 PM | by Alfred Markus Paar | Posted in Synology
Prerequisites
- Subversion set up and repository available
Install WebSVN
- Connect to server and navigate to the directory where the webpages are located. Usually named www
- Download WebSVN via SSH from Github: git clone git://github.com/websvnphp/websvn
- Test in a browser: <server_ip>/websvn → it will show that there is no configuration done yet
- Copy the example config and rename it: cp include/distconfig.php include/config.php
- Modify the recently created file. Search for the following section where repositories are added and modify the lines by your need
$config->addRepository('test-repo','svn://localhost/test-repo',null,'<username>','<password>'
- Actually, I did not find a solution to avoid plain text passwords. I will update this post as soon as there is a solution.
- To ensuere the connection is only possible from local network, create a .htacces file
Enter the local network. If there is any VPN connection or similar with another IP (a.b.c.d), simply add them in the next lineOrder Deny,Allow Deny from all Allow from 192.168.1.0/24 Allow from a.b.c.d/24
- Test again in a browser:
Leave a Reply