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

@ -3,7 +3,7 @@
enable = true;
settings = {
WASTEBIN_TITLE = "m3tam3re's wastebin";
WASTEBIN_BASE_URL = "https://bin.m3tam3re.com";
WASTEBIN_BASE_URL = "https://bin.m3ta.dev";
WASTEBIN_ADDRESS_PORT = "0.0.0.0:3003";
WASTEBIN_MAX_BODY_SIZE = 1048576;
};
@ -17,12 +17,21 @@
];
routers.wastebin = {
rule = "Host(`bin.m3tam3re.com`)";
rule = "Host(`bin.m3ta.dev`)";
tls = {
certResolver = "godaddy";
};
service = "wastebin";
entrypoints = "websecure";
};
routers.wastebin-old = {
rule = "Host(`bin.m3tam3re.com`)";
tls = {
certResolver = "godaddy";
};
service = "wastebin";
entrypoints = "websecure";
middlewares = ["subdomain-redirect"];
};
};
}