Um eigene interne Grails Plugins zu verwalten bietet sich ein eigenes Plugin Repository an. Bei einem Repository hinter einem Proxy gibt es aber ein paar Tücken.

Subversion Repository erstellen

svnadmin create /path/to/repo

Apache Konfigurieren

normaler Webserver

Wenn der Subversion-Apache hinter einem https-Proxy betrieben wird, müssen die Requestheader umgeschrieben werden (RequestHeader edit...).

<VirtualHost *:80>
       ServerName example.com
       ServerAdmin webmaster@example.com
       DocumentRoot /var/www/example
       RequestHeader edit Destination ^https http early
        <Location /svn/grails-plugins>
          DAV svn
          SVNPath /path/to/repo
          AuthType Basic
          AuthName "Grails Plugins Subversion Repository"
          AuthUserFile /etc/apache2/example.com.svn.passwd      
            Require valid-user           
          # SSLRequireSSL
        </Location>
</VirtualHost>

SSL Proxy Server Konfiguration

(Ausschnitt)

ProxyPass /svn/ http://example.com/svn/
ProxyPassReverse /svn/ http://example.com/svn/

<Location /svn/>
        ProxyPassReverse /svn/
        <Limit OPTIONS PROPFIND GET REPORT MKACTIVITY PROPPATCH PUT CHECKOUT MKCOL MOVE COPY DELETE LOCK UNLOCK MERGE>
          Order Deny,Allow
          Allow from all
          Satisfy Any
        </Limit>
</Location>

Grails Konfiguration