I am pretty new to Synology Diskstation and got a problem in setting up authentication for the DiskStation 212+.
I got SVN up and running and I even managed to get WebSVN to running after hours of reading through guides and Google(were some steps I somehow didn't understand at first)
Now my problem is that I don't want random people accessing WebSVN.
If I got this right then WebSVN is able to use the passwd as an database for logging into WebSVN with an authentication.
I read about using .htaccess with htpasswd(generated by a generator) but this doesn't seem to fit in the idea of using the existing SVN userdatabase stored in passwd.
My setup is /volume1/svn/project/ for the svn and /volume1/web/websvn/ for the website.
In /volume1/svn/project/conf/authz is where I can use restriction for the svn users.
In /volume1/web/websvn/include/config.php contains the settings for websvn
I am also not very sure which settings to add, for the moment I have
- Code: Select all
$config->setSVNCommandPath('/opt/bin/');
- Code: Select all
$config->addRepository('Project','file:///volume1/svn/project/');
my NAS outside my home-network.
- Code: Select all
//$config->parentPath('/volume1/svn');
- Code: Select all
$config->useAuthenticationFile('/volume1/svn/project/conf/authz');
When accessing Websvn with only this I get an error saying
Unable to read authentication file "/volume1/svn/project/conf/authz"
I am really confused, I am writing this at 5 in the morning because I was trying for 4 hours already to understand this but I simply couldn't proceed anymore and therefor I arrived here hoping for some help regarding this problem.
Someone who can explain me where I did wrong in my thinking or what steps I missed would be really nice.


