Find file
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (43 sloc) 1.55 KB
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean name="sshServer"
class="com.asolutions.scmsshd.SCuMD"
init-method="start"
destroy-method="stop">
<property name="port" value="3333" />
<property name="keyPairProvider">
<bean class="org.apache.sshd.common.keyprovider.FileKeyPairProvider">
<constructor-arg>
<list>
<value>src/main/resources/ssh_host_rsa_key</value>
<value>src/main/resources/ssh_host_dsa_key</value>
</list>
</constructor-arg>
</bean>
</property>
<property name="publickeyAuthenticator">
<bean class="com.asolutions.scmsshd.authenticators.AlwaysPassPublicKeyAuthenticator" />
</property>
<property name="commandFactory">
<bean class="com.asolutions.scmsshd.commands.factories.GitCommandFactory">
<property name="configuration">
<props>
<prop key="repositoryBase">/tmp/repos</prop>
</props>
</property>
<property name="pathToProjectNameConverter">
<bean
class="com.asolutions.scmsshd.converters.path.regexp.ConfigurablePathToProjectConverter">
<property name="projectPattern" value="(proj-\d+)" />
</bean>
</property>
<property name="projectAuthorizor">
<bean class="com.asolutions.scmsshd.authorizors.AlwaysPassProjectAuthorizer" />
</property>
</bean>
</property>
</bean>
</beans>