Move homelab services to oliverdavies.uk domain
This commit is contained in:
parent
f740c91a6c
commit
716cb791e9
14 changed files with 31 additions and 31 deletions
nix/modules/nixos/features/homelab
|
@ -16,8 +16,8 @@ in
|
|||
port = 4001;
|
||||
};
|
||||
|
||||
caddy.virtualHosts."audiobookshelf.opdavies.uk" = {
|
||||
useACMEHost = "opdavies.uk";
|
||||
caddy.virtualHosts."audiobookshelf.oliverdavies.uk" = {
|
||||
useACMEHost = "oliverdavies.uk";
|
||||
|
||||
extraConfig = "reverse_proxy localhost:${toString config.services.audiobookshelf.port}";
|
||||
};
|
||||
|
|
|
@ -93,8 +93,8 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."beaverhabits.opdavies.uk" = {
|
||||
useACMEHost = "opdavies.uk";
|
||||
services.caddy.virtualHosts."beaverhabits.oliverdavies.uk" = {
|
||||
useACMEHost = "oliverdavies.uk";
|
||||
|
||||
extraConfig = "reverse_proxy localhost:${toString port}";
|
||||
};
|
||||
|
|
|
@ -100,8 +100,8 @@ in
|
|||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."freshrss.opdavies.uk" = {
|
||||
useACMEHost = "opdavies.uk";
|
||||
services.caddy.virtualHosts."freshrss.oliverdavies.uk" = {
|
||||
useACMEHost = "oliverdavies.uk";
|
||||
|
||||
extraConfig = "reverse_proxy localhost:${toString port}";
|
||||
};
|
||||
|
|
|
@ -286,8 +286,8 @@ in
|
|||
wantedBy = [ "multi-user.target" ];
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."tubearchivist.opdavies.uk" = {
|
||||
useACMEHost = "opdavies.uk";
|
||||
services.caddy.virtualHosts."tubearchivist.oliverdavies.uk" = {
|
||||
useACMEHost = "oliverdavies.uk";
|
||||
|
||||
extraConfig = "reverse_proxy localhost:${toString port}";
|
||||
};
|
||||
|
|
|
@ -14,7 +14,7 @@ with lib;
|
|||
|
||||
settings = {
|
||||
server = {
|
||||
DOMAIN = "forgejo.opdavies.uk";
|
||||
DOMAIN = "forgejo.oliverdavies.uk";
|
||||
HTTP_PORT = 2223;
|
||||
};
|
||||
|
||||
|
@ -25,7 +25,7 @@ with lib;
|
|||
};
|
||||
|
||||
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}";
|
||||
};
|
||||
|
|
|
@ -26,8 +26,8 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
caddy.virtualHosts."gitea.opdavies.uk" = {
|
||||
useACMEHost = "opdavies.uk";
|
||||
caddy.virtualHosts."gitea.oliverdavies.uk" = {
|
||||
useACMEHost = "oliverdavies.uk";
|
||||
|
||||
extraConfig = "reverse_proxy localhost:${toString port}";
|
||||
};
|
||||
|
|
|
@ -19,8 +19,8 @@ with lib;
|
|||
|
||||
environment.systemPackages = [ pkgs.immich-cli ];
|
||||
|
||||
services.caddy.virtualHosts."immich.opdavies.uk" = {
|
||||
useACMEHost = "opdavies.uk";
|
||||
services.caddy.virtualHosts."immich.oliverdavies.uk" = {
|
||||
useACMEHost = "oliverdavies.uk";
|
||||
|
||||
extraConfig = "reverse_proxy localhost:${toString config.services.immich.port}";
|
||||
};
|
||||
|
|
|
@ -13,8 +13,8 @@ with lib;
|
|||
configDir = "/mnt/media/jellyfin";
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."jellyfin.opdavies.uk" = {
|
||||
useACMEHost = "opdavies.uk";
|
||||
services.caddy.virtualHosts."jellyfin.oliverdavies.uk" = {
|
||||
useACMEHost = "oliverdavies.uk";
|
||||
|
||||
extraConfig = "reverse_proxy localhost:8096";
|
||||
};
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
with lib;
|
||||
|
||||
let
|
||||
url = "paperless.oliverdavies.uk";
|
||||
in
|
||||
{
|
||||
options.features.homelab.paperless.enable = mkEnableOption "Enable paperless";
|
||||
|
||||
|
@ -13,12 +16,12 @@ with lib;
|
|||
dataDir = "/mnt/media/paperless";
|
||||
|
||||
settings = {
|
||||
PAPERLESS_URL = "https://paperless.opdavies.uk";
|
||||
PAPERLESS_URL = "https://${url}";
|
||||
};
|
||||
};
|
||||
|
||||
caddy.virtualHosts."paperless.opdavies.uk" = {
|
||||
useACMEHost = "opdavies.uk";
|
||||
caddy.virtualHosts."${url}" = {
|
||||
useACMEHost = "oliverdavies.uk";
|
||||
|
||||
extraConfig = "reverse_proxy localhost:28981";
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@ with lib;
|
|||
enable = true;
|
||||
|
||||
config = {
|
||||
DOMAIN = "https://vaultwarden.opdavies.uk";
|
||||
DOMAIN = "https://vaultwarden.oliverdavies.uk";
|
||||
|
||||
# TODO: check registrations are disabled.
|
||||
SIGNUPS_ALLOWED = false;
|
||||
|
@ -21,8 +21,8 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
caddy.virtualHosts."vaultwarden.opdavies.uk" = {
|
||||
useACMEHost = "opdavies.uk";
|
||||
caddy.virtualHosts."vaultwarden.oliverdavies.uk" = {
|
||||
useACMEHost = "oliverdavies.uk";
|
||||
|
||||
extraConfig = "reverse_proxy localhost:${toString config.services.vaultwarden.config.ROCKET_PORT}";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue