Compare commits
2 commits
dc0a21b9c4
...
ec5022d671
Author | SHA1 | Date | |
---|---|---|---|
ec5022d671 | |||
eb91f08503 |
2 changed files with 20 additions and 3 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"];
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
services.anki-sync-server = {
|
services.anki-sync-server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
address = "100.108.113.89";
|
address = "0.0.0.0";
|
||||||
port = 27701;
|
port = 27701;
|
||||||
users = [
|
users = [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue