summaryrefslogtreecommitdiff
path: root/frontends/etc/httpd.conf.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/etc/httpd.conf.tpl')
-rw-r--r--frontends/etc/httpd.conf.tpl28
1 files changed, 27 insertions, 1 deletions
diff --git a/frontends/etc/httpd.conf.tpl b/frontends/etc/httpd.conf.tpl
index afe9581..c636b80 100644
--- a/frontends/etc/httpd.conf.tpl
+++ b/frontends/etc/httpd.conf.tpl
@@ -26,7 +26,19 @@ server "<%= "$hostname.$domain" %>" {
request strip 2
}
location * {
- block return 302 "https://<%= $hostname.'.'.$domain %>"
+ block return 302 "https://<%= "$hostname.$domain" %>"
+ }
+}
+
+server "<%= "$hostname.$domain" %>" {
+ listen on * tls port 443
+ tls {
+ certificate "/etc/ssl/<%= "$hostname.$domain" %>.fullchain.pem"
+ key "/etc/ssl/private/<%= "$hostname.$domain" %>.key"
+ }
+ location * {
+ root "/htdocs/buetow.org/self"
+ directory auto index
}
}
@@ -113,6 +125,20 @@ server "<%= $prefix %>dory.buetow.org" {
<% } -%>
<% for my $prefix (@prefixes) { -%>
+server "<%= $prefix %>solarcat.buetow.org" {
+ listen on * tls port 443
+ tls {
+ certificate "/etc/ssl/<%= $prefix %>solarcat.buetow.org.fullchain.pem"
+ key "/etc/ssl/private/<%= $prefix %>solarcat.buetow.org.key"
+ }
+ location * {
+ root "/htdocs/joern/solarcat.buetow.org"
+ directory auto index
+ }
+}
+<% } -%>
+
+<% for my $prefix (@prefixes) { -%>
server "<%= $prefix %>fotos.buetow.org" {
listen on * tls port 443
tls {