Show More
@@ -1,83 +1,85 b'' | |||||
1 | # Auto generated configuration for use with the Apache mod_dav_svn module. |
|
1 | # Auto generated configuration for use with the Apache mod_dav_svn module. | |
2 | # |
|
2 | # | |
3 | # WARNING: Make sure your Apache instance which runs the mod_dav_svn module is |
|
3 | # WARNING: Make sure your Apache instance which runs the mod_dav_svn module is | |
4 | # only accessible by RhodeCode. Otherwise everyone is able to browse |
|
4 | # only accessible by RhodeCode. Otherwise everyone is able to browse | |
5 | # the repositories or run subversion operations (checkout/commit/etc.). |
|
5 | # the repositories or run subversion operations (checkout/commit/etc.). | |
6 | # |
|
6 | # | |
7 | # The mod_dav_svn module does not support subversion repositories which are |
|
7 | # The mod_dav_svn module does not support subversion repositories which are | |
8 | # organized in subfolders. To support the repository groups of RhodeCode it is |
|
8 | # organized in subfolders. To support the repository groups of RhodeCode it is | |
9 | # required to provide a <Location> block for each group pointing to the |
|
9 | # required to provide a <Location> block for each group pointing to the | |
10 | # repository group sub folder. To ease the configuration RhodeCode auto |
|
10 | # repository group sub folder. To ease the configuration RhodeCode auto | |
11 | # generates this file whenever a repository group is created/changed/deleted. |
|
11 | # generates this file whenever a repository group is created/changed/deleted. | |
12 | # Auto generation can be configured in the ini file. Settings are prefixed with |
|
12 | # Auto generation can be configured in the ini file. Settings are prefixed with | |
13 | # ``svn.proxy``. |
|
13 | # ``svn.proxy``. | |
14 | # |
|
14 | # | |
15 | # To include this configuration into your apache config you can use the |
|
15 | # To include this configuration into your apache config you can use the | |
16 | # `Include` directive. See the following example snippet of a virtual host how |
|
16 | # `Include` directive. See the following example snippet of a virtual host how | |
17 | # to include this configuration file. |
|
17 | # to include this configuration file. | |
18 | # |
|
18 | # | |
19 | # <VirtualHost *:8090> |
|
19 | # <VirtualHost *:8090> | |
20 | # ServerAdmin webmaster@localhost |
|
20 | # ServerAdmin webmaster@localhost | |
21 | # DocumentRoot /var/www/html |
|
21 | # DocumentRoot /var/www/html | |
22 | # ErrorLog ${'${APACHE_LOG_DIR}'}/error.log |
|
22 | # ErrorLog ${'${APACHE_LOG_DIR}'}/error.log | |
23 | # CustomLog ${'${APACHE_LOG_DIR}'}/access.log combined |
|
23 | # CustomLog ${'${APACHE_LOG_DIR}'}/access.log combined | |
24 | # Include /path/to/generated/mod_dav_svn.conf |
|
24 | # Include /path/to/generated/mod_dav_svn.conf | |
25 | # </VirtualHost> |
|
25 | # </VirtualHost> | |
26 | # |
|
26 | # | |
27 | # Depending on the apache configuration you may encounter the following error if |
|
27 | # Depending on the apache configuration you may encounter the following error if | |
28 | # you are using speecial characters in your repository or repository group |
|
28 | # you are using speecial characters in your repository or repository group | |
29 | # names. |
|
29 | # names. | |
30 | # |
|
30 | # | |
31 | # ``Error converting entry in directory '/path/to/repo' to UTF-8`` |
|
31 | # ``Error converting entry in directory '/path/to/repo' to UTF-8`` | |
32 | # |
|
32 | # | |
33 | # In this case you have to change the LANG environment variable in the apache |
|
33 | # In this case you have to change the LANG environment variable in the apache | |
34 | # configuration. This setting is typically located at ``/etc/apache2/envvars``. |
|
34 | # configuration. This setting is typically located at ``/etc/apache2/envvars``. | |
35 | # You have to change it to an UTF-8 value like ``export LANG="en_US.UTF-8"``. |
|
35 | # You have to change it to an UTF-8 value like ``export LANG="en_US.UTF-8"``. | |
36 | # After changing this a stop and start of Apache is required (using restart |
|
36 | # After changing this a stop and start of Apache is required (using restart | |
37 | # doesn't work). |
|
37 | # doesn't work). | |
38 |
|
38 | |||
39 | # fix https -> http downgrade with DAV. It requires an header downgrade for |
|
39 | # fix https -> http downgrade with DAV. It requires an header downgrade for | |
40 | # https -> http reverse proxy to work properly |
|
40 | # https -> http reverse proxy to work properly | |
41 | % if use_https: |
|
41 | % if use_https: | |
42 | RequestHeader edit Destination ^https: http: early |
|
42 | RequestHeader edit Destination ^https: http: early | |
43 | % else: |
|
43 | % else: | |
44 | #RequestHeader edit Destination ^https: http: early |
|
44 | #RequestHeader edit Destination ^https: http: early | |
45 | % endif |
|
45 | % endif | |
46 |
|
46 | |||
47 | <Location "${location_root|n}"> |
|
47 | <Location "${location_root|n}"> | |
48 | # The mod_dav_svn module takes the username from the apache request object. |
|
48 | # The mod_dav_svn module takes the username from the apache request object. | |
49 | # Without authorization this will be empty and no username is logged for the |
|
49 | # Without authorization this will be empty and no username is logged for the | |
50 | # transactions. This will result in "(no author)" for each revision. The |
|
50 | # transactions. This will result in "(no author)" for each revision. The | |
51 | # following directives implement a fake authentication that allows every |
|
51 | # following directives implement a fake authentication that allows every | |
52 | # username/password combination. |
|
52 | # username/password combination. | |
53 | AuthType Basic |
|
53 | AuthType Basic | |
54 | AuthName "${rhodecode_realm|n}" |
|
54 | AuthName "${rhodecode_realm|n}" | |
55 | AuthBasicProvider anon |
|
55 | AuthBasicProvider anon | |
56 | Anonymous * |
|
56 | Anonymous * | |
|
57 | Anonymous_LogEmail off | |||
57 | Require valid-user |
|
58 | Require valid-user | |
58 |
|
59 | |||
59 | DAV svn |
|
60 | DAV svn | |
60 | SVNParentPath "${parent_path_root|n}" |
|
61 | SVNParentPath "${parent_path_root|n}" | |
61 | SVNListParentPath ${"On" if svn_list_parent_path else "Off"|n} |
|
62 | SVNListParentPath ${"On" if svn_list_parent_path else "Off"|n} | |
62 |
|
63 | |||
63 | Allow from all |
|
64 | Allow from all | |
64 | Order allow,deny |
|
65 | Order allow,deny | |
65 | </Location> |
|
66 | </Location> | |
66 |
|
67 | |||
67 | % for location, parent_path in repo_group_paths: |
|
68 | % for location, parent_path in repo_group_paths: | |
68 |
|
69 | |||
69 | <Location "${location|n}"> |
|
70 | <Location "${location|n}"> | |
70 | AuthType Basic |
|
71 | AuthType Basic | |
71 | AuthName "${rhodecode_realm|n}" |
|
72 | AuthName "${rhodecode_realm|n}" | |
72 | AuthBasicProvider anon |
|
73 | AuthBasicProvider anon | |
73 | Anonymous * |
|
74 | Anonymous * | |
|
75 | Anonymous_LogEmail off | |||
74 | Require valid-user |
|
76 | Require valid-user | |
75 |
|
77 | |||
76 | DAV svn |
|
78 | DAV svn | |
77 | SVNParentPath "${parent_path|n}" |
|
79 | SVNParentPath "${parent_path|n}" | |
78 | SVNListParentPath ${"On" if svn_list_parent_path else "Off"|n} |
|
80 | SVNListParentPath ${"On" if svn_list_parent_path else "Off"|n} | |
79 |
|
81 | |||
80 | Allow from all |
|
82 | Allow from all | |
81 | Order allow,deny |
|
83 | Order allow,deny | |
82 | </Location> |
|
84 | </Location> | |
83 | % endfor |
|
85 | % endfor |
General Comments 0
You need to be logged in to leave comments.
Login now