Switch to IONOS
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
|
||||
networking = {
|
||||
hostName = "jupiter-vps";
|
||||
publicIPv4 = "51.75.170.190";
|
||||
publicIPv4 = "217.154.55.15";
|
||||
};
|
||||
|
||||
environment.impermanence.enable = lib.mkForce false;
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{
|
||||
disko.devices = {
|
||||
disk.main = {
|
||||
device = "/dev/sda";
|
||||
device = "/dev/vda";
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "gpt";
|
||||
|
@@ -54,7 +54,7 @@
|
||||
|
||||
networking = {
|
||||
hostName = "jupiter";
|
||||
publicIPv4 = "51.89.210.124";
|
||||
publicIPv4 = "87.106.36.59";
|
||||
};
|
||||
|
||||
boot.initrd = {
|
||||
|
@@ -31,6 +31,14 @@ in
|
||||
labels = [
|
||||
"traefik.enable=true"
|
||||
"traefik.http.routers.blog.rule=Host(`blog.karaolidis.com`)"
|
||||
|
||||
"traefik.http.routers.root.rule=Host(`karaolidis.com`,`www.karaolidis.com`)"
|
||||
"traefik.http.routers.root.middlewares=redirect-root-to-blog"
|
||||
"traefik.http.routers.root.service=noop@internal"
|
||||
|
||||
"traefik.http.middlewares.redirect-root-to-blog.redirectregex.regex=^https://(www\.)?karaolidis\.com(/.*)?$"
|
||||
"traefik.http.middlewares.redirect-root-to-blog.redirectregex.replacement=https://blog.karaolidis.com$${2}"
|
||||
"traefik.http.middlewares.redirect-root-to-blog.redirectregex.permanent=false"
|
||||
];
|
||||
};
|
||||
|
||||
@@ -47,10 +55,6 @@ in
|
||||
labels = [
|
||||
"traefik.enable=true"
|
||||
"traefik.http.routers.blog-receiver.rule=Host(`blog.karaolidis.com`) && PathPrefix(`/upload`)"
|
||||
|
||||
"traefik.http.middlewares.redirect-root-to-blog.redirectregex.regex=^https://(www\.)?karaolidis\.com(/.*)?$"
|
||||
"traefik.http.middlewares.redirect-root-to-blog.redirectregex.replacement=https://blog.karaolidis.com$${2}"
|
||||
"traefik.http.middlewares.redirect-root-to-blog.redirectregex.permanent=false"
|
||||
];
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user