class { '::salsa::redis': } ->
class { '::salsa::packages': } ->
class { '::salsa::database': } ->
+ class { '::salsa::web': } ->
anchor { 'salsa::end': }
# userdir-ldap users get their home in /home
file { "/var/lib/systemd/linger/git":
ensure => present,
}
-
- ssl::service { $servicename:
- # notify => Exec['service apache2 reload'],
- key => true,
- }
}
--- /dev/null
+#
+class salsa::web inherits salsa {
+ include apache2
+ include apache2::proxy_http
+ include apache2::ssl
+
+ ssl::service { 'salsa.debian.org':
+ notify => Exec['service apache2 reload'],
+ key => true,
+ }
+
+ apache2::site { '010-salsa.debian.org':
+ site => 'salsa.debian.org',
+ content => template('salsa/apache-salsa.debian.org.conf.erb'),
+ }
+
+}
--- /dev/null
+Use common-debian-service-https-redirect * salsa.debian.org
+
+<VirtualHost *:443>
+ ServerName salsa.debian.org
+ ServerAdmin debian-admin@lists.debian.org
+
+ Use common-debian-service-ssl salsa.debian.org
+ Use common-ssl-HSTS
+ Use http-pkp-salsa.debian.org
+
+ ErrorLog /var/log/apache2/salsa.debian.org-error.log
+ CustomLog /var/log/apache2/salsa.debian.org-access.log privacy
+
+ ProxyPass / http://127.0.0.1:8080/ retry=15
+ ProxyPassReverse / http://127.0.0.1:8080/
+</VirtualHost>
+
+# vim:set syn=apache: