| OLD | NEW |
| 1 # == Class: hgweb | 1 # == Class: hgweb |
| 2 # | 2 # |
| 3 # A hgweb server setup. | 3 # A hgweb server setup. |
| 4 # | 4 # |
| 5 # === Parameters: | 5 # === Parameters: |
| 6 # | 6 # |
| 7 # [*domain*] | 7 # [*domain*] |
| 8 # The auhority part of the URL the instance is associated with. | 8 # The auhority part of the URL the instance is associated with. |
| 9 # | 9 # |
| 10 # [*is_default*] | 10 # [*is_default*] |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 subscribe => File['/etc/hgweb.ini'], | 167 subscribe => File['/etc/hgweb.ini'], |
| 168 } | 168 } |
| 169 | 169 |
| 170 nginx::hostconfig {$domain: | 170 nginx::hostconfig {$domain: |
| 171 certificate => $certificate ? { | 171 certificate => $certificate ? { |
| 172 'undef' => undef, | 172 'undef' => undef, |
| 173 default => $certificate, | 173 default => $certificate, |
| 174 }, | 174 }, |
| 175 content => template('hgweb/nginx.conf.erb'), | 175 content => template('hgweb/nginx.conf.erb'), |
| 176 is_default => $is_default, | 176 is_default => $is_default, |
| 177 global_config => template('hgweb/nginx_global.conf.erb'), |
| 177 log => 'access_log_hg', | 178 log => 'access_log_hg', |
| 178 private_key => $private_key ? { | 179 private_key => $private_key ? { |
| 179 'undef' => undef, | 180 'undef' => undef, |
| 180 default => $private_key, | 181 default => $private_key, |
| 181 }, | 182 }, |
| 182 } | 183 } |
| 183 } | 184 } |
| OLD | NEW |