fixed even more url

This commit is contained in:
chloe 2025-05-10 10:21:23 +02:00
parent 3ce26a6c3e
commit dc18cc850f
8 changed files with 48 additions and 41 deletions

View file

@ -11,7 +11,7 @@
reverse_proxy :4000 reverse_proxy :4000
''; '';
services.caddy.virtualHosts."http://uptime.diva.global.rougebordeaux.xyz.extraConfig = '' services.caddy.virtualHosts."http://uptime.diva.global.rougebordeaux.xyz".extraConfig = ''
reverse_proxy :4000 reverse_proxy :4000
''; '';
} }

View file

@ -9,6 +9,7 @@ let
ip = "192.168.1.177"; ip = "192.168.1.177";
gateway = "192.168.1.1"; gateway = "192.168.1.1";
username = "homelab"; username = "homelab";
# TODO: set up internal hostname config
in in
{ {
imports = [ imports = [

View file

@ -11,7 +11,7 @@
}; };
}; };
services.caddy.virtualHosts."http://books.rougebordeaux.xyz".extraConfig = '' services.caddy.virtualHosts."http://read.rougebordeaux.xyz".extraConfig = ''
reverse_proxy :8083 reverse_proxy :8083
''; '';
} }

View file

@ -23,12 +23,12 @@
}; };
services.caddy.virtualHosts = { services.caddy.virtualHosts = {
"http://jellyfin.sisyphe.normandy.rougebordeaux.xyz".extraConfig = '' "http://jellyfin.sisyphe.normandy.rougebordeaux.xyz".extraConfig = ''
reverse_proxy :8096 reverse_proxy :8096
''; '';
"http://media.rougebordeaux.xyz.extraConfig = '' "http://media.rougebordeaux.xyz".extraConfig = ''
reverse_proxy :8096 reverse_proxy :8096
''; '';
}; };
} }

View file

@ -29,6 +29,11 @@ in
type = types.str; type = types.str;
default = "192.168.1.25"; default = "192.168.1.25";
}; };
baseUrl = mkOption {
type = types.str;
default = "rougebordeaux.xyz";
};
}; };
#TODO: add Radarr/Sonarr/... api key support #TODO: add Radarr/Sonarr/... api key support
@ -38,11 +43,11 @@ in
format = "dotenv"; format = "dotenv";
}; };
services.caddy.virtualHosts."http://sisyphe.normandy.rougebordeaux.xyz".extraConfig = '' services.caddy.virtualHosts."http://sisyphe.normandy.${cfg.baseUrl}".extraConfig = ''
reverse_proxy :8082 reverse_proxy :8082
''; '';
services.caddy.virtualHosts."http://home.rougebordeaux.xyz.extraConfig = '' services.caddy.virtualHosts."http://home.${cfg.baseUrl}".extraConfig = ''
reverse_proxy :8082 reverse_proxy :8082
''; '';
@ -97,7 +102,7 @@ in
} }
{ {
"mastodon" = [ "mastodon" = [
{ href = "https://fish.rougebordeaux.xyz; } { href = "https://fish.rougebordeaux.xyz"; }
]; ];
} }
{ {
@ -147,14 +152,14 @@ in
"Calibre-web" = { "Calibre-web" = {
icon = "calibre"; icon = "calibre";
description = "Serveur de livres"; description = "Serveur de livres";
href = "http://books.rougebordeaux.xyz; href = "http://books.${cfg.baseUrl}";
}; };
} }
{ {
"Freshrss" = { "Freshrss" = {
icon = "freshrss"; icon = "freshrss";
description = "Récupère les articles"; description = "Récupère les articles";
href = "http://freshrss.rougebordeaux.xyz; href = "http://freshrss.${cfg.baseUrl}";
}; };
} }
]; ];
@ -166,7 +171,7 @@ in
"Jellyfin" = { "Jellyfin" = {
icon = "jellyfin"; icon = "jellyfin";
description = "Permet de regarder ou écouter du contenu."; description = "Permet de regarder ou écouter du contenu.";
href = "http://media.rougebordeaux.xyz; href = "http://media.${cfg.baseUrl}";
widget = { widget = {
type = "jellyfin"; type = "jellyfin";
url = "http://${ip}:8096"; url = "http://${ip}:8096";
@ -179,7 +184,7 @@ in
"Jellyseerr" = { "Jellyseerr" = {
icon = "jellyseerr"; icon = "jellyseerr";
description = "Moteur de recherche de films/séries"; description = "Moteur de recherche de films/séries";
href = "http://katflix.sisyphe.normandy.rougebordeaux.xyz; href = "http://katflix.sisyphe.normandy.${cfg.baseUrl}";
widget = { widget = {
type = "jellyseerr"; type = "jellyseerr";
@ -192,14 +197,14 @@ in
"slskd" = { "slskd" = {
icon = "slskd"; icon = "slskd";
description = "Pour télécharger/partager de la musique"; description = "Pour télécharger/partager de la musique";
href = "http://slskd.sisyphe.normandy.rougebordeaux.xyz; href = "http://slskd.sisyphe.normandy.${cfg.baseUrl}";
}; };
} }
{ {
"Prowlarr" = { "Prowlarr" = {
icon = "prowlarr"; icon = "prowlarr";
description = "Indexe les différents sites de téléchargement"; description = "Indexe les différents sites de téléchargement";
href = "http://prowlarr.sisyphe.normandy.rougebordeaux.xyz; href = "http://prowlarr.sisyphe.normandy.${cfg.baseUrl}";
widget = { widget = {
type = "prowlarr"; type = "prowlarr";
key = "{{HOMEPAGE_VAR_PROWLARR}}"; key = "{{HOMEPAGE_VAR_PROWLARR}}";
@ -211,7 +216,7 @@ in
"Sonarr" = { "Sonarr" = {
icon = "sonarr"; icon = "sonarr";
description = "Moteur de recherche pour les séries"; description = "Moteur de recherche pour les séries";
href = "http://sonarr.sisyphe.normandy.rougebordeaux.xyz; href = "http://sonarr.sisyphe.normandy.${cfg.baseUrl}";
widget = { widget = {
type = "sonarr"; type = "sonarr";
url = "http://${ip}:8989"; url = "http://${ip}:8989";
@ -223,10 +228,10 @@ in
"Sonarr anime" = { "Sonarr anime" = {
icon = "sonarr"; icon = "sonarr";
description = "Moteur de recherche pour les séries animées"; description = "Moteur de recherche pour les séries animées";
href = "http://sonarr-anime.sisyphe.normandy.rougebordeaux.xyz; href = "http://sonarr-anime.sisyphe.normandy.${cfg.baseUrl}";
widget = { widget = {
type = "sonarr"; type = "sonarr";
url = "http://${ip}:8999"; url = "";
key = "{{HOMEPAGE_VAR_SONARRANIME}}"; key = "{{HOMEPAGE_VAR_SONARRANIME}}";
}; };
}; };
@ -235,7 +240,7 @@ in
"Radarr" = { "Radarr" = {
icon = "radarr"; icon = "radarr";
description = "Moteur de recherche pour les films"; description = "Moteur de recherche pour les films";
href = "http://radarr.sisyphe.normandy.rougebordeaux.xyz; href = "http://radarr.sisyphe.normandy.${cfg.baseUrl}";
widget = { widget = {
type = "radarr"; type = "radarr";
key = "{{HOMEPAGE_VAR_RADARR}}"; key = "{{HOMEPAGE_VAR_RADARR}}";
@ -247,7 +252,7 @@ in
"Bazarr" = { "Bazarr" = {
icon = "bazarr"; icon = "bazarr";
description = "Vérifie les sous titres des films/séries."; description = "Vérifie les sous titres des films/séries.";
href = "http://bazarr.sisyphe.normandy.rougebordeaux.xyz; href = "http://bazarr.sisyphe.normandy.${cfg.baseUrl}";
widget = { widget = {
type = "bazarr"; type = "bazarr";
key = "{{HOMEPAGE_VAR_BAZARR}}"; key = "{{HOMEPAGE_VAR_BAZARR}}";
@ -259,7 +264,7 @@ in
"Bazarr anime" = { "Bazarr anime" = {
icon = "bazarr"; icon = "bazarr";
description = "Vérifie les sous titres des séries animées."; description = "Vérifie les sous titres des séries animées.";
href = "http://bazarr-anime.sisyphe.normandy.rougebordeaux.xyz; href = "http://bazarr-anime.sisyphe.normandy.${cfg.baseUrl}";
widget = { widget = {
type = "bazarr"; type = "bazarr";
key = "{{HOMEPAGE_VAR_BAZARRANIME}}"; key = "{{HOMEPAGE_VAR_BAZARRANIME}}";
@ -272,7 +277,7 @@ in
"Transmission" = { "Transmission" = {
icon = "transmission"; icon = "transmission";
description = "s'occupe du téléchargement des fichiers"; description = "s'occupe du téléchargement des fichiers";
href = "http://transmission.sisyphe.normandy.rougebordeaux.xyz; href = "http://transmission.sisyphe.normandy.${cfg.baseUrl}";
widget = { widget = {
type = "transmission"; type = "transmission";
url = "http://${ip}:9091"; url = "http://${ip}:9091";
@ -285,7 +290,7 @@ in
"Sabnzbd" = { "Sabnzbd" = {
icon = "sabnzbd"; icon = "sabnzbd";
description = "s'occupe de naviguer sur les réseaux usenet"; description = "s'occupe de naviguer sur les réseaux usenet";
href = "http://nzb.sisyphe.normandy.rougebordeaux.xyz; href = "http://nzb.sisyphe.normandy.rougebordeaux.xyz";
}; };
} }
]; ];
@ -296,14 +301,14 @@ in
"Nextcloud" = { "Nextcloud" = {
icon = "nextcloud"; icon = "nextcloud";
description = "Sauvegarde de données"; description = "Sauvegarde de données";
href = "https://cloud.rougebordeaux.xyz; href = "https://cloud.rougebordeaux.xyz";
}; };
} }
{ {
"4get" = { "4get" = {
icon = "searx"; icon = "searx";
description = "Moteur de recherche privé pour remplacer Google."; description = "Moteur de recherche privé pour remplacer Google.";
href = "https://4get.rougebordeaux.xyz; href = "https://4get.rougebordeaux.xyz";
}; };
} }
]; ];
@ -340,7 +345,7 @@ in
"Grafana" = { "Grafana" = {
icon = "grafana"; icon = "grafana";
description = "Visualiseur de graphiques"; description = "Visualiseur de graphiques";
href = "http://grafana.sisyphe.normandy.rougebordeaux.xyz; href = "http://grafana.sisyphe.normandy.${cfg.baseUrl}";
}; };
} }
{ {
@ -354,7 +359,7 @@ in
"Uptime Kuma" = { "Uptime Kuma" = {
icon = "uptime-kuma"; icon = "uptime-kuma";
description = "Surveille l'état des différents services"; description = "Surveille l'état des différents services";
href = "http://uptime.sisyphe.normandy.rougebordeaux.xyz; href = "http://uptime.sisyphe.normandy.${cfg.baseUrl}";
}; };
} }
{ {

View file

@ -1,4 +1,4 @@
{config, pkgs, ...}: { config, pkgs, ... }:
{ {
environment.systemPackages = with pkgs; [ ircdHybrid ]; environment.systemPackages = with pkgs; [ ircdHybrid ];
@ -6,15 +6,16 @@
enable = true; enable = true;
serverName = "irc.rougebordeaux.xyz"; serverName = "irc.rougebordeaux.xyz";
description = "welcome to the silly kittens hut !! meow:3"; description = "welcome to the silly kittens hut !! meow:3";
adminEmail = "admin@rougebordeaux.xyz; adminEmail = "admin@rougebordeaux.xyz";
}; };
/**environment.etc = { /**
"ircd.conf" = { environment.etc = {
text ='' "ircd.conf" = {
''; text =''
mode = "440"; '';
}; mode = "440";
};**/ };
};*
*/
} }

View file

@ -46,7 +46,7 @@
"OC\\Preview\\HEIC" "OC\\Preview\\HEIC"
]; ];
trustedDomains = [ "cloud.rougebordeaux.xyz ]; trustedDomains = [ "cloud.rougebordeaux.xyz" ];
overwriteprotocol = "https"; overwriteprotocol = "https";
log_type = "file"; # temporary fix for https://nixos.org/manual/nixos/stable/#module-services-nextcloud-warning-logreader log_type = "file"; # temporary fix for https://nixos.org/manual/nixos/stable/#module-services-nextcloud-warning-logreader
default_phone_region = "FR"; default_phone_region = "FR";

View file

@ -12,7 +12,7 @@
reverse_proxy :4000 reverse_proxy :4000
''; '';
services.caddy.virtualHosts."http://uptime.sisyphe.normandy.rougebordeaux.xyz.extraConfig = '' services.caddy.virtualHosts."http://uptime.sisyphe.normandy.rougebordeaux.xyz".extraConfig = ''
reverse_proxy :4000 reverse_proxy :4000
''; '';