Move homelab services to oliverdavies.uk domain
This commit is contained in:
parent
f740c91a6c
commit
716cb791e9
|
@ -5,14 +5,14 @@
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
|
|
||||||
certs = {
|
certs = {
|
||||||
"opdavies.uk" = {
|
"oliverdavies.uk" = {
|
||||||
domain = "opdavies.uk";
|
domain = "oliverdavies.uk";
|
||||||
dnsProvider = "cloudflare";
|
dnsProvider = "cloudflare";
|
||||||
email = "oliver@oliverdavies.uk";
|
email = "oliver@oliverdavies.uk";
|
||||||
environmentFile = config.age.secrets.cloudflare-opdavies-uk.path;
|
environmentFile = config.age.secrets.cloudflare.path;
|
||||||
webroot = null;
|
webroot = null;
|
||||||
|
|
||||||
extraDomainNames = [ "*.opdavies.uk" ];
|
extraDomainNames = [ "*.oliverdavies.uk" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
age.secrets = {
|
age.secrets = {
|
||||||
cloudflare-opdavies-uk.file = ../../secrets/cloudflare-opdavies-uk.age;
|
cloudflare.file = ../../secrets/cloudflare.age;
|
||||||
tubearchivist.file = ../../secrets/tubearchivist.age;
|
tubearchivist.file = ../../secrets/tubearchivist.age;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,8 +16,8 @@ in
|
||||||
port = 4001;
|
port = 4001;
|
||||||
};
|
};
|
||||||
|
|
||||||
caddy.virtualHosts."audiobookshelf.opdavies.uk" = {
|
caddy.virtualHosts."audiobookshelf.oliverdavies.uk" = {
|
||||||
useACMEHost = "opdavies.uk";
|
useACMEHost = "oliverdavies.uk";
|
||||||
|
|
||||||
extraConfig = "reverse_proxy localhost:${toString config.services.audiobookshelf.port}";
|
extraConfig = "reverse_proxy localhost:${toString config.services.audiobookshelf.port}";
|
||||||
};
|
};
|
||||||
|
|
|
@ -93,8 +93,8 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.caddy.virtualHosts."beaverhabits.opdavies.uk" = {
|
services.caddy.virtualHosts."beaverhabits.oliverdavies.uk" = {
|
||||||
useACMEHost = "opdavies.uk";
|
useACMEHost = "oliverdavies.uk";
|
||||||
|
|
||||||
extraConfig = "reverse_proxy localhost:${toString port}";
|
extraConfig = "reverse_proxy localhost:${toString port}";
|
||||||
};
|
};
|
||||||
|
|
|
@ -100,8 +100,8 @@ in
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.caddy.virtualHosts."freshrss.opdavies.uk" = {
|
services.caddy.virtualHosts."freshrss.oliverdavies.uk" = {
|
||||||
useACMEHost = "opdavies.uk";
|
useACMEHost = "oliverdavies.uk";
|
||||||
|
|
||||||
extraConfig = "reverse_proxy localhost:${toString port}";
|
extraConfig = "reverse_proxy localhost:${toString port}";
|
||||||
};
|
};
|
||||||
|
|
|
@ -286,8 +286,8 @@ in
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.caddy.virtualHosts."tubearchivist.opdavies.uk" = {
|
services.caddy.virtualHosts."tubearchivist.oliverdavies.uk" = {
|
||||||
useACMEHost = "opdavies.uk";
|
useACMEHost = "oliverdavies.uk";
|
||||||
|
|
||||||
extraConfig = "reverse_proxy localhost:${toString port}";
|
extraConfig = "reverse_proxy localhost:${toString port}";
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,7 +14,7 @@ with lib;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
server = {
|
server = {
|
||||||
DOMAIN = "forgejo.opdavies.uk";
|
DOMAIN = "forgejo.oliverdavies.uk";
|
||||||
HTTP_PORT = 2223;
|
HTTP_PORT = 2223;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ with lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
caddy.virtualHosts."${config.services.forgejo.settings.server.DOMAIN}" = {
|
caddy.virtualHosts."${config.services.forgejo.settings.server.DOMAIN}" = {
|
||||||
useACMEHost = "opdavies.uk";
|
useACMEHost = "oliverdavies.uk";
|
||||||
|
|
||||||
extraConfig = "reverse_proxy localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}";
|
extraConfig = "reverse_proxy localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}";
|
||||||
};
|
};
|
||||||
|
|
|
@ -26,8 +26,8 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
caddy.virtualHosts."gitea.opdavies.uk" = {
|
caddy.virtualHosts."gitea.oliverdavies.uk" = {
|
||||||
useACMEHost = "opdavies.uk";
|
useACMEHost = "oliverdavies.uk";
|
||||||
|
|
||||||
extraConfig = "reverse_proxy localhost:${toString port}";
|
extraConfig = "reverse_proxy localhost:${toString port}";
|
||||||
};
|
};
|
||||||
|
|
|
@ -19,8 +19,8 @@ with lib;
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.immich-cli ];
|
environment.systemPackages = [ pkgs.immich-cli ];
|
||||||
|
|
||||||
services.caddy.virtualHosts."immich.opdavies.uk" = {
|
services.caddy.virtualHosts."immich.oliverdavies.uk" = {
|
||||||
useACMEHost = "opdavies.uk";
|
useACMEHost = "oliverdavies.uk";
|
||||||
|
|
||||||
extraConfig = "reverse_proxy localhost:${toString config.services.immich.port}";
|
extraConfig = "reverse_proxy localhost:${toString config.services.immich.port}";
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,8 +13,8 @@ with lib;
|
||||||
configDir = "/mnt/media/jellyfin";
|
configDir = "/mnt/media/jellyfin";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.caddy.virtualHosts."jellyfin.opdavies.uk" = {
|
services.caddy.virtualHosts."jellyfin.oliverdavies.uk" = {
|
||||||
useACMEHost = "opdavies.uk";
|
useACMEHost = "oliverdavies.uk";
|
||||||
|
|
||||||
extraConfig = "reverse_proxy localhost:8096";
|
extraConfig = "reverse_proxy localhost:8096";
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
url = "paperless.oliverdavies.uk";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
options.features.homelab.paperless.enable = mkEnableOption "Enable paperless";
|
options.features.homelab.paperless.enable = mkEnableOption "Enable paperless";
|
||||||
|
|
||||||
|
@ -13,12 +16,12 @@ with lib;
|
||||||
dataDir = "/mnt/media/paperless";
|
dataDir = "/mnt/media/paperless";
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
PAPERLESS_URL = "https://paperless.opdavies.uk";
|
PAPERLESS_URL = "https://${url}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
caddy.virtualHosts."paperless.opdavies.uk" = {
|
caddy.virtualHosts."${url}" = {
|
||||||
useACMEHost = "opdavies.uk";
|
useACMEHost = "oliverdavies.uk";
|
||||||
|
|
||||||
extraConfig = "reverse_proxy localhost:28981";
|
extraConfig = "reverse_proxy localhost:28981";
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,7 +11,7 @@ with lib;
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
DOMAIN = "https://vaultwarden.opdavies.uk";
|
DOMAIN = "https://vaultwarden.oliverdavies.uk";
|
||||||
|
|
||||||
# TODO: check registrations are disabled.
|
# TODO: check registrations are disabled.
|
||||||
SIGNUPS_ALLOWED = false;
|
SIGNUPS_ALLOWED = false;
|
||||||
|
@ -21,8 +21,8 @@ with lib;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
caddy.virtualHosts."vaultwarden.opdavies.uk" = {
|
caddy.virtualHosts."vaultwarden.oliverdavies.uk" = {
|
||||||
useACMEHost = "opdavies.uk";
|
useACMEHost = "oliverdavies.uk";
|
||||||
|
|
||||||
extraConfig = "reverse_proxy localhost:${toString config.services.vaultwarden.config.ROCKET_PORT}";
|
extraConfig = "reverse_proxy localhost:${toString config.services.vaultwarden.config.ROCKET_PORT}";
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,14 +13,11 @@ in
|
||||||
{
|
{
|
||||||
"secrets/cloudflare.age".publicKeys = [
|
"secrets/cloudflare.age".publicKeys = [
|
||||||
hosts.hetznix
|
hosts.hetznix
|
||||||
|
hosts.nixedo
|
||||||
hosts.t490
|
hosts.t490
|
||||||
users.opdavies
|
users.opdavies
|
||||||
] ++ users;
|
] ++ users;
|
||||||
|
|
||||||
"secrets/cloudflare-opdavies-uk.age".publicKeys = [
|
|
||||||
hosts.nixedo
|
|
||||||
] ++ users;
|
|
||||||
|
|
||||||
"secrets/tubearchivist.age".publicKeys = [
|
"secrets/tubearchivist.age".publicKeys = [
|
||||||
hosts.lemp11
|
hosts.lemp11
|
||||||
hosts.nixedo
|
hosts.nixedo
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue