web-redirect: init new service for simple domain redirects

This commit is contained in:
Katherina Walshe-Grey 2025-03-17 02:25:28 +00:00
parent addbf7ac3e
commit 55000c365a
4 changed files with 42 additions and 19 deletions

View file

@ -61,15 +61,10 @@
enable = true;
domain = "actual.unspecified.systems";
};
services.nginx = {
fountain.services.web-redirect = {
enable = true;
virtualHosts = {
"actual.qenya.tel" = {
forceSSL = true;
enableACME = true;
locations."/".return = "301 https://actual.unspecified.systems$request_uri";
};
domains = {
"actual.qenya.tel" = "actual.unspecified.systems";
};
};