traefik domain redirects

This commit is contained in:
m3tam3re
2025-04-18 15:59:06 +02:00
parent f560c59be5
commit b6e8a1614b
11 changed files with 98 additions and 18 deletions

View File

@ -13,14 +13,25 @@
url = "http://localhost:3002/";
}
];
routers.ghost = {
rule = "Host(`www.m3tam3re.com`)";
tls = {
certResolver = "godaddy";
routers = {
ghost = {
rule = "Host(`m3ta.dev`)";
tls = {
certResolver = "godaddy";
};
service = "ghost";
entrypoints = "websecure";
middlewares = ["strip-www"];
};
ghost-old = {
rule = "Host(`www.m3tam3re.com`)";
tls = {
certResolver = "godaddy";
};
service = "ghost";
entrypoints = "websecure";
middlewares = ["domain-redirect"];
};
service = "ghost";
entrypoints = "websecure";
};
};
}