summaryrefslogtreecommitdiff
path: root/openbsd/frontends/etc
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2022-01-22 18:48:26 +0000
committerPaul Buetow <paul@buetow.org>2022-01-22 18:48:26 +0000
commit4be2e88532479f77e7c4b9d51c6c59a6eb823005 (patch)
tree994c0500badb0c169a71ae8edac9ba4707eeecd1 /openbsd/frontends/etc
parentaf848172e06b4f77fe42f41ddd68c8a5a0cf60a4 (diff)
add foo.zone
Diffstat (limited to 'openbsd/frontends/etc')
-rw-r--r--openbsd/frontends/etc/httpd.conf52
-rw-r--r--openbsd/frontends/etc/relayd.conf:blowfish1
2 files changed, 35 insertions, 18 deletions
diff --git a/openbsd/frontends/etc/httpd.conf b/openbsd/frontends/etc/httpd.conf
index e0b7971..0228967 100644
--- a/openbsd/frontends/etc/httpd.conf
+++ b/openbsd/frontends/etc/httpd.conf
@@ -1,22 +1,22 @@
-server "foo.surf" {
+server "foo.zone" {
listen on * port 80
- block return 302 "https://foo.surf"
+ block return 302 "https://foo.zone"
}
-server "www.foo.surf" {
+server "www.foo.zone" {
listen on * port 80
- block return 302 "https://www.foo.surf"
+ block return 302 "https://www.foo.zone"
}
-server "foo.surf" {
- alias "www.foo.surf"
+server "foo.zone" {
+ alias "www.foo.zone"
listen on * tls port 443
tls {
- certificate "/etc/ssl/foo.surf.fullchain.pem"
- key "/etc/ssl/private/foo.surf.key"
+ certificate "/etc/ssl/foo.zone.fullchain.pem"
+ key "/etc/ssl/private/foo.zone.key"
}
location "/*" {
- root "/htdocs/gemtexter/foo.surf"
+ root "/htdocs/gemtexter/foo.zone"
directory auto index
}
}
@@ -24,7 +24,7 @@ server "foo.surf" {
server "snonux.de" {
alias "www.snonux.de"
listen on * port 80
- block return 302 "https://foo.surf$REQUEST_URI"
+ block return 302 "https://foo.zone$REQUEST_URI"
}
server "snonux.de" {
@@ -34,19 +34,35 @@ server "snonux.de" {
certificate "/etc/ssl/snonux.de.fullchain.pem"
key "/etc/ssl/private/snonux.de.key"
}
- block return 302 "https://foo.surf$REQUEST_URI"
+ block return 302 "https://foo.zone$REQUEST_URI"
+}
+
+server "foo.surf" {
+ alias "www.foo.surf"
+ listen on * port 80
+ block return 302 "https://foo.zone$REQUEST_URI"
+}
+
+server "foo.surf" {
+ alias "www.foo.surf"
+ listen on * tls port 443
+ tls {
+ certificate "/etc/ssl/foo.surf.fullchain.pem"
+ key "/etc/ssl/private/foo.surf.key"
+ }
+ block return 302 "https://foo.zone$REQUEST_URI"
}
server "buetow.org" {
alias "www.buetow.org"
listen on * port 80
- block return 302 "https://foo.surf$REQUEST_URI"
+ block return 302 "https://foo.zone$REQUEST_URI"
}
server "paul.buetow.org" {
alias "contact.buetow.org"
listen on * port 80
- block return 302 "https://foo.surf/contact-information.html"
+ block return 302 "https://foo.zone/contact-information.html"
}
server "buetow.org" {
@@ -56,7 +72,7 @@ server "buetow.org" {
certificate "/etc/ssl/buetow.org.fullchain.pem"
key "/etc/ssl/private/buetow.org.key"
}
- block return 302 "https://foo.surf$REQUEST_URI"
+ block return 302 "https://foo.zone$REQUEST_URI"
}
server "dtail.dev" {
@@ -79,14 +95,14 @@ server "dtail.dev" {
server "default" {
listen on * port 80
- block return 302 "https://foo.surf$REQUEST_URI"
+ block return 302 "https://foo.zone$REQUEST_URI"
}
server "default" {
listen on * tls port 443
tls {
- certificate "/etc/ssl/foo.surf.fullchain.pem"
- key "/etc/ssl/private/foo.surf.key"
+ certificate "/etc/ssl/foo.zone.fullchain.pem"
+ key "/etc/ssl/private/foo.zone.key"
}
- block return 302 "https://foo.surf$REQUEST_URI"
+ block return 302 "https://foo.zone$REQUEST_URI"
}
diff --git a/openbsd/frontends/etc/relayd.conf:blowfish b/openbsd/frontends/etc/relayd.conf:blowfish
index e899b83..5bfc1f8 100644
--- a/openbsd/frontends/etc/relayd.conf:blowfish
+++ b/openbsd/frontends/etc/relayd.conf:blowfish
@@ -1,6 +1,7 @@
log connection
tcp protocol "gemini" {
+ tls keypair foo.zone
tls keypair foo.surf
tls keypair buetow.org
tls keypair snonux.de