mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 01:55:13 -05:00
refactor: changed url path convention
This commit is contained in:
parent
a35076c0fe
commit
0c1d86e494
25 changed files with 67 additions and 11 deletions
|
@ -9,6 +9,7 @@ let
|
||||||
sopsPath
|
sopsPath
|
||||||
;
|
;
|
||||||
audiobookshelfSubdomain = "books";
|
audiobookshelfSubdomain = "books";
|
||||||
|
audiobookshelfDomain = "${audiobookshelfSubdomain}.${domain0}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
label = audiobookshelfLabel;
|
label = audiobookshelfLabel;
|
||||||
|
@ -16,6 +17,9 @@ in
|
||||||
sops = {
|
sops = {
|
||||||
path0 = "${sopsPath}/${audiobookshelfName}";
|
path0 = "${sopsPath}/${audiobookshelfName}";
|
||||||
};
|
};
|
||||||
|
domains = {
|
||||||
|
url0 = audiobookshelfDomain;
|
||||||
|
};
|
||||||
subdomain = audiobookshelfSubdomain;
|
subdomain = audiobookshelfSubdomain;
|
||||||
paths = {
|
paths = {
|
||||||
path0 = "${servicePath}/${audiobookshelfLabel}";
|
path0 = "${servicePath}/${audiobookshelfLabel}";
|
||||||
|
|
|
@ -10,6 +10,7 @@ let
|
||||||
forgejoLabel = "Forgejo";
|
forgejoLabel = "Forgejo";
|
||||||
forgejoName = "forgejo";
|
forgejoName = "forgejo";
|
||||||
forgejoSubdomain = "source";
|
forgejoSubdomain = "source";
|
||||||
|
forgejoDomain = "${forgejoSubdomain}.${domain3}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
label = forgejoLabel;
|
label = forgejoLabel;
|
||||||
|
@ -20,6 +21,9 @@ in
|
||||||
sops = {
|
sops = {
|
||||||
path0 = "${sopsPath}/${forgejoName}";
|
path0 = "${sopsPath}/${forgejoName}";
|
||||||
};
|
};
|
||||||
|
domains = {
|
||||||
|
url0 = forgejoDomain;
|
||||||
|
};
|
||||||
subdomain = forgejoSubdomain;
|
subdomain = forgejoSubdomain;
|
||||||
paths = {
|
paths = {
|
||||||
path0 = "${servicePath}/${forgejoLabel}";
|
path0 = "${servicePath}/${forgejoLabel}";
|
||||||
|
|
|
@ -10,6 +10,7 @@ let
|
||||||
glanceLabel = "Glance";
|
glanceLabel = "Glance";
|
||||||
glanceName = "glance";
|
glanceName = "glance";
|
||||||
glanceSubdomain = "dashboard";
|
glanceSubdomain = "dashboard";
|
||||||
|
glanceDomain = "${glanceSubdomain}.${domain0}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
label = glanceLabel;
|
label = glanceLabel;
|
||||||
|
@ -20,6 +21,9 @@ in
|
||||||
sops = {
|
sops = {
|
||||||
path0 = "${sopsPath}/${glanceName}";
|
path0 = "${sopsPath}/${glanceName}";
|
||||||
};
|
};
|
||||||
|
domains = {
|
||||||
|
url0 = glanceDomain;
|
||||||
|
};
|
||||||
subdomain = glanceSubdomain;
|
subdomain = glanceSubdomain;
|
||||||
paths = {
|
paths = {
|
||||||
path0 = "${servicePath}/${glanceLabel}";
|
path0 = "${servicePath}/${glanceLabel}";
|
||||||
|
|
|
@ -8,6 +8,7 @@ let
|
||||||
sslPath
|
sslPath
|
||||||
sopsPath
|
sopsPath
|
||||||
;
|
;
|
||||||
|
jellyfinDomain = "${jellyfinName}.${domain0}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
label = jellyfinLabel;
|
label = jellyfinLabel;
|
||||||
|
@ -15,6 +16,9 @@ in
|
||||||
sops = {
|
sops = {
|
||||||
path0 = "${sopsPath}/${jellyfinName}";
|
path0 = "${sopsPath}/${jellyfinName}";
|
||||||
};
|
};
|
||||||
|
domains = {
|
||||||
|
url0 = jellyfinDomain;
|
||||||
|
};
|
||||||
subdomain = jellyfinName;
|
subdomain = jellyfinName;
|
||||||
paths = {
|
paths = {
|
||||||
path0 = "${servicePath}/${jellyfinLabel}";
|
path0 = "${servicePath}/${jellyfinLabel}";
|
||||||
|
|
|
@ -10,6 +10,7 @@ let
|
||||||
kanboardLabel = "Kanboard";
|
kanboardLabel = "Kanboard";
|
||||||
kanboardName = "kanboard";
|
kanboardName = "kanboard";
|
||||||
kanboardSubdomain = "todo";
|
kanboardSubdomain = "todo";
|
||||||
|
kanboardDomain = "${kanboardSubdomain}.${domain0}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
label = kanboardLabel;
|
label = kanboardLabel;
|
||||||
|
@ -20,6 +21,9 @@ in
|
||||||
sops = {
|
sops = {
|
||||||
path0 = "${sopsPath}/${kanboardName}";
|
path0 = "${sopsPath}/${kanboardName}";
|
||||||
};
|
};
|
||||||
|
domains = {
|
||||||
|
url0 = kanboardDomain;
|
||||||
|
};
|
||||||
subdomain = kanboardSubdomain;
|
subdomain = kanboardSubdomain;
|
||||||
paths = {
|
paths = {
|
||||||
path0 = "${servicePath}/${kanboardLabel}";
|
path0 = "${servicePath}/${kanboardLabel}";
|
||||||
|
|
|
@ -10,6 +10,7 @@ let
|
||||||
mastodonLabel = "Mastodon";
|
mastodonLabel = "Mastodon";
|
||||||
mastodonName = "mastodon";
|
mastodonName = "mastodon";
|
||||||
mastodonSubdomain = "social";
|
mastodonSubdomain = "social";
|
||||||
|
mastodonDomain = "${mastodonSubdomain}.${domain3}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
label = mastodonLabel;
|
label = mastodonLabel;
|
||||||
|
@ -17,6 +18,9 @@ in
|
||||||
email = {
|
email = {
|
||||||
address0 = "noreply@${domain3}";
|
address0 = "noreply@${domain3}";
|
||||||
};
|
};
|
||||||
|
domains = {
|
||||||
|
url0 = mastodonDomain;
|
||||||
|
};
|
||||||
subdomain = mastodonSubdomain;
|
subdomain = mastodonSubdomain;
|
||||||
sops = {
|
sops = {
|
||||||
path0 = "${sopsPath}/${mastodonName}";
|
path0 = "${sopsPath}/${mastodonName}";
|
||||||
|
|
|
@ -9,6 +9,7 @@ let
|
||||||
|
|
||||||
nextcloudLabel = "Nextcloud";
|
nextcloudLabel = "Nextcloud";
|
||||||
nextcloudName = "nextcloud";
|
nextcloudName = "nextcloud";
|
||||||
|
nextcloudDomain = "${nextcloudName}.${domain0}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
label = nextcloudLabel;
|
label = nextcloudLabel;
|
||||||
|
@ -19,6 +20,9 @@ in
|
||||||
sops = {
|
sops = {
|
||||||
path0 = "${sopsPath}/${nextcloudName}";
|
path0 = "${sopsPath}/${nextcloudName}";
|
||||||
};
|
};
|
||||||
|
domains = {
|
||||||
|
url0 = nextcloudDomain;
|
||||||
|
};
|
||||||
subdomain = nextcloudName;
|
subdomain = nextcloudName;
|
||||||
paths = {
|
paths = {
|
||||||
path0 = "${servicePath}/${nextcloudLabel}";
|
path0 = "${servicePath}/${nextcloudLabel}";
|
||||||
|
|
|
@ -9,6 +9,7 @@ let
|
||||||
|
|
||||||
ollamaLabel = "Ollama";
|
ollamaLabel = "Ollama";
|
||||||
ollamaName = "ollama";
|
ollamaName = "ollama";
|
||||||
|
ollamaDomain = "${ollamaName}.${domain0}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
label = ollamaLabel;
|
label = ollamaLabel;
|
||||||
|
@ -16,6 +17,9 @@ in
|
||||||
sops = {
|
sops = {
|
||||||
path0 = "${sopsPath}/${ollamaName}";
|
path0 = "${sopsPath}/${ollamaName}";
|
||||||
};
|
};
|
||||||
|
domains = {
|
||||||
|
url0 = ollamaDomain;
|
||||||
|
};
|
||||||
subdomain = ollamaName;
|
subdomain = ollamaName;
|
||||||
paths = {
|
paths = {
|
||||||
path0 = "${servicePath}/${ollamaLabel}";
|
path0 = "${servicePath}/${ollamaLabel}";
|
||||||
|
|
|
@ -10,6 +10,7 @@ let
|
||||||
owncastLabel = "Owncast";
|
owncastLabel = "Owncast";
|
||||||
owncastName = "owncast";
|
owncastName = "owncast";
|
||||||
owncastSubdomain = "stream";
|
owncastSubdomain = "stream";
|
||||||
|
owncastDomain = "${owncastSubdomain}.${domain1}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
label = owncastLabel;
|
label = owncastLabel;
|
||||||
|
@ -17,6 +18,9 @@ in
|
||||||
sops = {
|
sops = {
|
||||||
path0 = "${sopsPath}/${owncastName}";
|
path0 = "${sopsPath}/${owncastName}";
|
||||||
};
|
};
|
||||||
|
domains = {
|
||||||
|
url0 = owncastDomain;
|
||||||
|
};
|
||||||
subdomain = owncastSubdomain;
|
subdomain = owncastSubdomain;
|
||||||
paths = {
|
paths = {
|
||||||
path0 = "${servicePath}/${owncastLabel}";
|
path0 = "${servicePath}/${owncastLabel}";
|
||||||
|
|
|
@ -10,6 +10,7 @@ let
|
||||||
peertubeLabel = "PeerTube";
|
peertubeLabel = "PeerTube";
|
||||||
peertubeName = "peertube";
|
peertubeName = "peertube";
|
||||||
peertubeSubdomain = "video";
|
peertubeSubdomain = "video";
|
||||||
|
peertubeDomain = "${peertubeSubdomain}.${domain3}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
label = peertubeLabel;
|
label = peertubeLabel;
|
||||||
|
@ -20,6 +21,9 @@ in
|
||||||
sops = {
|
sops = {
|
||||||
path0 = "${sopsPath}/${peertubeName}";
|
path0 = "${sopsPath}/${peertubeName}";
|
||||||
};
|
};
|
||||||
|
domains = {
|
||||||
|
url0 = peertubeDomain;
|
||||||
|
};
|
||||||
subdomain = peertubeSubdomain;
|
subdomain = peertubeSubdomain;
|
||||||
paths = {
|
paths = {
|
||||||
path0 = "${servicePath}/${peertubeLabel}";
|
path0 = "${servicePath}/${peertubeLabel}";
|
||||||
|
|
|
@ -9,6 +9,7 @@ let
|
||||||
|
|
||||||
postfixLabel = "Postfix";
|
postfixLabel = "Postfix";
|
||||||
postfixName = "postfix";
|
postfixName = "postfix";
|
||||||
|
postfixDomain = "${postfixName}.${domain3}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
label = postfixLabel;
|
label = postfixLabel;
|
||||||
|
@ -16,6 +17,9 @@ in
|
||||||
sops = {
|
sops = {
|
||||||
path0 = "${sopsPath}/${postfixName}";
|
path0 = "${sopsPath}/${postfixName}";
|
||||||
};
|
};
|
||||||
|
domains = {
|
||||||
|
url0 = postfixDomain;
|
||||||
|
};
|
||||||
subdomain = postfixName;
|
subdomain = postfixName;
|
||||||
paths = {
|
paths = {
|
||||||
path0 = "${servicePath}/${postfixLabel}";
|
path0 = "${servicePath}/${postfixLabel}";
|
||||||
|
|
|
@ -10,6 +10,7 @@ let
|
||||||
searxLabel = "SearXNG";
|
searxLabel = "SearXNG";
|
||||||
searxName = "searx";
|
searxName = "searx";
|
||||||
searxSubdomain = "search";
|
searxSubdomain = "search";
|
||||||
|
searxDomain = "${searxSubdomain}.${domain0}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
label = searxLabel;
|
label = searxLabel;
|
||||||
|
@ -20,6 +21,9 @@ in
|
||||||
sops = {
|
sops = {
|
||||||
path0 = "${sopsPath}/${searxName}";
|
path0 = "${sopsPath}/${searxName}";
|
||||||
};
|
};
|
||||||
|
domains = {
|
||||||
|
url0 = searxDomain;
|
||||||
|
};
|
||||||
subdomain = searxSubdomain;
|
subdomain = searxSubdomain;
|
||||||
paths = {
|
paths = {
|
||||||
path0 = "${servicePath}/${searxLabel}";
|
path0 = "${servicePath}/${searxLabel}";
|
||||||
|
|
|
@ -8,6 +8,7 @@ let
|
||||||
|
|
||||||
syncthingLabel = "Syncthing";
|
syncthingLabel = "Syncthing";
|
||||||
syncthingName = "syncthing";
|
syncthingName = "syncthing";
|
||||||
|
syncthingDomain = "${syncthingName}.${domain0}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
label = syncthingLabel;
|
label = syncthingLabel;
|
||||||
|
@ -15,6 +16,9 @@ in
|
||||||
sops = {
|
sops = {
|
||||||
path0 = "${sopsPath}/${syncthingName}";
|
path0 = "${sopsPath}/${syncthingName}";
|
||||||
};
|
};
|
||||||
|
domains = {
|
||||||
|
url0 = syncthingDomain;
|
||||||
|
};
|
||||||
subdomain = syncthingName;
|
subdomain = syncthingName;
|
||||||
ports = {
|
ports = {
|
||||||
port0 = 8388; # Syncthing (WebUI)
|
port0 = 8388; # Syncthing (WebUI)
|
||||||
|
|
|
@ -9,6 +9,7 @@ let
|
||||||
|
|
||||||
vaultwardenLabel = "Vaultwarden";
|
vaultwardenLabel = "Vaultwarden";
|
||||||
vaultwardenName = "vaultwarden";
|
vaultwardenName = "vaultwarden";
|
||||||
|
vaultwardenDomain = "${vaultwardenName}.${domain0}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
label = vaultwardenLabel;
|
label = vaultwardenLabel;
|
||||||
|
@ -19,6 +20,9 @@ in
|
||||||
sops = {
|
sops = {
|
||||||
path0 = "${sopsPath}/${vaultwardenName}";
|
path0 = "${sopsPath}/${vaultwardenName}";
|
||||||
};
|
};
|
||||||
|
domains = {
|
||||||
|
url0 = vaultwardenDomain;
|
||||||
|
};
|
||||||
subdomain = vaultwardenName;
|
subdomain = vaultwardenName;
|
||||||
paths = {
|
paths = {
|
||||||
path0 = "${servicePath}/${vaultwardenLabel}/BackupDir";
|
path0 = "${servicePath}/${vaultwardenLabel}/BackupDir";
|
||||||
|
|
|
@ -3,7 +3,7 @@ let
|
||||||
inherit (flake.config.services.instances) audiobookshelf web;
|
inherit (flake.config.services.instances) audiobookshelf web;
|
||||||
inherit (flake.config.machines.devices) ceres;
|
inherit (flake.config.machines.devices) ceres;
|
||||||
service = audiobookshelf;
|
service = audiobookshelf;
|
||||||
host = "${service.subdomain}.${web.domains.url0}";
|
host = service.domains.url0;
|
||||||
localhost = web.localhost.address0;
|
localhost = web.localhost.address0;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,7 +10,7 @@ let
|
||||||
inherit (flake.config.services.instances) smtp forgejo web;
|
inherit (flake.config.services.instances) smtp forgejo web;
|
||||||
service = forgejo;
|
service = forgejo;
|
||||||
localhost = web.localhost.address0;
|
localhost = web.localhost.address0;
|
||||||
host = "${service.subdomain}.${web.domains.url3}";
|
host = service.domains.url0;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
|
|
|
@ -5,7 +5,7 @@ let
|
||||||
inherit (flake.config.services.instances) jellyfin web;
|
inherit (flake.config.services.instances) jellyfin web;
|
||||||
service = jellyfin;
|
service = jellyfin;
|
||||||
localhost = web.localhost.address0;
|
localhost = web.localhost.address0;
|
||||||
host = "${service.subdomain}.${web.domains.url0}";
|
host = service.domains.url0;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
|
|
|
@ -10,7 +10,7 @@ let
|
||||||
inherit (flake.config.services.instances) smtp kanboard web;
|
inherit (flake.config.services.instances) smtp kanboard web;
|
||||||
service = kanboard;
|
service = kanboard;
|
||||||
localhost = web.localhost.address0;
|
localhost = web.localhost.address0;
|
||||||
host = "${service.subdomain}.${web.domains.url0}";
|
host = service.domains.url0;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
|
|
|
@ -11,7 +11,7 @@ let
|
||||||
;
|
;
|
||||||
inherit (flake.config.services.instances) smtp mastodon web;
|
inherit (flake.config.services.instances) smtp mastodon web;
|
||||||
service = mastodon;
|
service = mastodon;
|
||||||
host = "${mastodon.subdomain}.${web.domains.url3}";
|
host = service.domains.url0;
|
||||||
localhost = web.localhost.address0;
|
localhost = web.localhost.address0;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@ let
|
||||||
;
|
;
|
||||||
service = nextcloud;
|
service = nextcloud;
|
||||||
localhost = web.localhost.address0;
|
localhost = web.localhost.address0;
|
||||||
host = "${service.subdomain}.${web.domains.url0}";
|
host = service.domains.url0;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
|
|
|
@ -17,7 +17,7 @@ let
|
||||||
localhost1 = web.localhost.address0;
|
localhost1 = web.localhost.address0;
|
||||||
localhost2 = web.localhost.address1;
|
localhost2 = web.localhost.address1;
|
||||||
hostname = config.networking.hostName;
|
hostname = config.networking.hostName;
|
||||||
host = "${service.subdomain}.${web.domains.url0}";
|
host = service.domains.url0;
|
||||||
|
|
||||||
localhostLogic = if hostname == mars.name then localhost2 else localhost1;
|
localhostLogic = if hostname == mars.name then localhost2 else localhost1;
|
||||||
caddyLogic =
|
caddyLogic =
|
||||||
|
|
|
@ -6,7 +6,7 @@ let
|
||||||
;
|
;
|
||||||
service = owncast;
|
service = owncast;
|
||||||
localhost = web.localhost.address1;
|
localhost = web.localhost.address1;
|
||||||
host = "${service.subdomain}.${web.domains.url1}";
|
host = service.domains.url0;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
|
|
|
@ -16,7 +16,7 @@ let
|
||||||
;
|
;
|
||||||
service = peertube;
|
service = peertube;
|
||||||
localhost = web.localhost.address0;
|
localhost = web.localhost.address0;
|
||||||
host = "${service.subdomain}.${web.domains.url3}";
|
host = service.domains.url0;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
|
|
|
@ -10,7 +10,7 @@ let
|
||||||
service = searx;
|
service = searx;
|
||||||
hostname = config.networking.hostName;
|
hostname = config.networking.hostName;
|
||||||
localhost = web.localhost.address0;
|
localhost = web.localhost.address0;
|
||||||
host = "${service.subdomain}.${web.domains.url0}";
|
host = service.domains.url0;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services =
|
services =
|
||||||
|
|
|
@ -7,7 +7,7 @@ let
|
||||||
inherit (flake.config.services.instances) smtp vaultwarden web;
|
inherit (flake.config.services.instances) smtp vaultwarden web;
|
||||||
service = vaultwarden;
|
service = vaultwarden;
|
||||||
localhost = web.localhost.address0;
|
localhost = web.localhost.address0;
|
||||||
host = "${service.subdomain}.${web.domains.url0}";
|
host = service.domains.url0;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue