Compare commits

..

2 commits

Author SHA1 Message Date
ec5022d671
anki-sync-server: listen on all hosts 2024-04-01 21:01:48 -04:00
eb91f08503
traefik: add pqdn redirect 2024-04-01 21:00:47 -04:00
2 changed files with 20 additions and 3 deletions

View file

@ -32,9 +32,18 @@
trustForwardHeader = true;
};
};
redirect-flake-sh = {
redirectregex = {
regex = "^https?://flake\\.sh/(.*)";
replacement = "https://notohh.dev/";
permanent = false;
};
};
redirect-to-https = {
redirectscheme.scheme = "https";
redirectscheme.permanent = true;
redirectscheme = {
scheme = "https";
permanent = true;
};
};
cors = {
headers = {
@ -62,6 +71,14 @@
tls.domains = [{main = "*.notohh.dev";}];
tls.certresolver = "production";
};
flake-sh = {
rule = "Host(`${pqdn}`)";
entrypoints = ["websecure"];
service = "noop@internal";
middlewares = "redirect-flake-sh";
tls.domains = [{main = "*.${pqdn}";}];
tls.certresolver = "production";
};
uptime-kuma = {
rule = "Host(`status.${pqdn}`)";
entrypoints = ["websecure"];

View file

@ -3,7 +3,7 @@
services.anki-sync-server = {
enable = true;
openFirewall = true;
address = "100.108.113.89";
address = "0.0.0.0";
port = 27701;
users = [
{