traefik: add pqdn redirect
This commit is contained in:
parent
dc0a21b9c4
commit
eb91f08503
1 changed files with 19 additions and 2 deletions
|
@ -32,9 +32,18 @@
|
||||||
trustForwardHeader = true;
|
trustForwardHeader = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
redirect-flake-sh = {
|
||||||
|
redirectregex = {
|
||||||
|
regex = "^https?://flake\\.sh/(.*)";
|
||||||
|
replacement = "https://notohh.dev/";
|
||||||
|
permanent = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
redirect-to-https = {
|
redirect-to-https = {
|
||||||
redirectscheme.scheme = "https";
|
redirectscheme = {
|
||||||
redirectscheme.permanent = true;
|
scheme = "https";
|
||||||
|
permanent = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
cors = {
|
cors = {
|
||||||
headers = {
|
headers = {
|
||||||
|
@ -62,6 +71,14 @@
|
||||||
tls.domains = [{main = "*.notohh.dev";}];
|
tls.domains = [{main = "*.notohh.dev";}];
|
||||||
tls.certresolver = "production";
|
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 = {
|
uptime-kuma = {
|
||||||
rule = "Host(`status.${pqdn}`)";
|
rule = "Host(`status.${pqdn}`)";
|
||||||
entrypoints = ["websecure"];
|
entrypoints = ["websecure"];
|
||||||
|
|
Loading…
Reference in a new issue