summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-09-26 21:31:52 +0300
committerPaul Buetow <paul@buetow.org>2023-09-26 21:31:52 +0300
commitc4ac27583204ddf9a1a93f2d69dddbac1a5cb852 (patch)
tree1e52e741b53519fb3e68b4ef7572a86817f963a0
parenta64270d584bd957bf73b57c9f61c58e37a828c77 (diff)
rename
-rw-r--r--frontends/etc/httpd.conf.tpl8
-rw-r--r--frontends/scripts/gemtexter.sh.tpl9
2 files changed, 9 insertions, 8 deletions
diff --git a/frontends/etc/httpd.conf.tpl b/frontends/etc/httpd.conf.tpl
index 5ac907f..2e08695 100644
--- a/frontends/etc/httpd.conf.tpl
+++ b/frontends/etc/httpd.conf.tpl
@@ -30,7 +30,7 @@ server "<%= "$hostname.$domain" %>" {
}
# Gemtexter hosts
-<% for my $host (qw/foo.zone snonux.land paul.cyou/) { %>
+<% for my $host (qw/foo.zone snonux.land paul.buetow.org/) { %>
server "<%= $prefix.$host %>" {
listen on * tls port 443
tls {
@@ -47,8 +47,8 @@ server "<%= $prefix.$host %>" {
}
<% } %>
-# Redirect to paul.cyou
-<% for my $host (qw/buetow.org paul.buetow.org snonux.foo/) { %>
+# Redirect to paul.buetow.org
+<% for my $host (qw/buetow.org paul.cyou snonux.foo/) { %>
server "<%= $prefix.$host %>" {
listen on * tls port 443
tls {
@@ -56,7 +56,7 @@ server "<%= $prefix.$host %>" {
key "/etc/ssl/private/<%= $prefix.$host %>.key"
}
location * {
- block return 302 "https://<%= $prefix %>paul.cyou$REQUEST_URI"
+ block return 302 "https://<%= $prefix %>paul.buetow.org$REQUEST_URI"
}
}
<% } %>
diff --git a/frontends/scripts/gemtexter.sh.tpl b/frontends/scripts/gemtexter.sh.tpl
index 50e19dd..09108db 100644
--- a/frontends/scripts/gemtexter.sh.tpl
+++ b/frontends/scripts/gemtexter.sh.tpl
@@ -35,6 +35,7 @@ function ensure_links {
parent=$(dirname $dir)
cd $parent
+
if [ ! -e $target ]; then
ln -s $basename $target
fi
@@ -45,7 +46,7 @@ function ensure_links {
}
<% if ($is_primary->($vio0_ip)) { %>
-for site in foo.zone paul.cyou; do
+for site in foo.zone paul.buetow.org; do
ensure_site \
/var/gemini/$site \
https://codeberg.org/snonux/$site \
@@ -56,8 +57,8 @@ for site in foo.zone paul.cyou; do
content-html
done
-ensure_links /var/gemini/paul.cyou buetow.org
-ensure_links /var/gemini/paul.cyou paul.buetow.org
-ensure_links /var/gemini/paul.cyou snonux.foo
+ensure_links /var/gemini/paul.buetow.org buetow.org
+ensure_links /var/gemini/paul.buetow.org paul.cyou
+ensure_links /var/gemini/paul.buetow.org snonux.foo
<% } %>