diff options
| author | Paul Buetow <paul@buetow.org> | 2024-05-03 23:54:42 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-05-03 23:54:42 +0300 |
| commit | 0be945ded3ae8053567402e64fbcda378e61f1ad (patch) | |
| tree | bf2e9ce19affbf9a8c28168e769054260c8f2375 | |
| parent | dafe9e6064ac6ed3a5d23787982118b69f1b75a0 (diff) | |
redirect snonux.foo to foo.zone
| -rw-r--r-- | frontends/etc/gogios.cron.tpl | 2 | ||||
| -rw-r--r-- | frontends/etc/httpd.conf.tpl | 13 |
2 files changed, 13 insertions, 2 deletions
diff --git a/frontends/etc/gogios.cron.tpl b/frontends/etc/gogios.cron.tpl index 84c6884..fc6299c 100644 --- a/frontends/etc/gogios.cron.tpl +++ b/frontends/etc/gogios.cron.tpl @@ -1,3 +1,3 @@ 0 7 * * * <%= $gogios_path %> -renotify >/dev/null -*/5 8-22 * * * <%= $gogios_path %> >/dev/null +*/5 8-22 * * * -s <%= $gogios_path %> >/dev/null 0 3 * * 0 <%= $gogios_path %> -force >/dev/null diff --git a/frontends/etc/httpd.conf.tpl b/frontends/etc/httpd.conf.tpl index 8a26590..c34b5a4 100644 --- a/frontends/etc/httpd.conf.tpl +++ b/frontends/etc/httpd.conf.tpl @@ -43,7 +43,7 @@ server "<%= "$hostname.$domain" %>" { } # Gemtexter hosts -<% for my $host (qw/foo.zone paul.buetow.org snonux.foo/) { %> +<% for my $host (qw/foo.zone paul.buetow.org/) { %> <% for my $prefix (@prefixes) { -%> server "<%= $prefix.$host %>" { listen on * tls port 443 @@ -78,6 +78,17 @@ server "<%= $prefix %>buetow.org" { block return 302 "https://paul.buetow.org$REQUEST_URI" } } + +server "<%= $prefix %>snonux.foo" { + listen on * tls port 443 + tls { + certificate "/etc/ssl/<%= $prefix %>snonux.foo.fullchain.pem" + key "/etc/ssl/private/<%= $prefix %>snonux.foo.key" + } + location * { + block return 302 "https://foo.zone$REQUEST_URI" + } +} <% } -%> # Redirect to gitub.dtail.dev |
