mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
hosts/plover: update private network hosting for various applications
This commit is contained in:
parent
4b377e527a
commit
657ee2098d
@ -33,8 +33,4 @@ rec {
|
||||
wireguardIPv6 = "fdee:b0de:54e6:ae74::";
|
||||
wireguardIPv6LengthPrefix = 64;
|
||||
wireguardPort = 51820;
|
||||
|
||||
# Applications that are supposed to be internal.
|
||||
atuinHostIP = privateNetworkHostPart 3;
|
||||
keycloakHost = privateNetworkHostPart 4;
|
||||
}
|
||||
|
@ -4,9 +4,9 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
atuinDomain = "atuin.${config.networking.domain}";
|
||||
inherit (import ../hardware/networks.nix) preferredInternalTLD privateIP';
|
||||
|
||||
inherit (import ../hardware/networks.nix) atuinHost;
|
||||
atuinDomain = "atuin.${config.networking.domain}.${preferredInternalTLD}";
|
||||
in
|
||||
{
|
||||
# Atuin sync server because why not.
|
||||
@ -15,7 +15,7 @@ in
|
||||
openFirewall = true;
|
||||
openRegistration = false;
|
||||
|
||||
host = atuinHost;
|
||||
host = privateIP';
|
||||
port = 8965;
|
||||
};
|
||||
|
||||
@ -32,8 +32,6 @@ in
|
||||
|
||||
# Putting it altogether in the reverse proxy of choice.
|
||||
services.nginx.virtualHosts."${atuinDomain}" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${toString config.services.atuin.port}";
|
||||
};
|
||||
|
@ -2,7 +2,7 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (import ../hardware/networks.nix) keycloakHost;
|
||||
inherit (import ../hardware/networks.nix) privateIP';
|
||||
|
||||
authDomain = "auth.${config.networking.domain}";
|
||||
|
||||
@ -27,7 +27,7 @@ in
|
||||
};
|
||||
|
||||
settings = {
|
||||
host = keycloakHost;
|
||||
host = privateIP';
|
||||
|
||||
db-schema = keycloakDbName;
|
||||
|
||||
@ -75,7 +75,7 @@ in
|
||||
# This is based from the reverse proxy guide from the official
|
||||
# documentation at https://www.keycloak.org/server/reverseproxy.
|
||||
locations = let
|
||||
keycloakPath = path: "http://${keycloakHost}:${toString config.services.keycloak.settings.http-port}";
|
||||
keycloakPath = path: "http://${privateIP'}:${toString config.services.keycloak.settings.http-port}";
|
||||
in
|
||||
lib.listToAttrs
|
||||
(lib.lists.map
|
||||
|
Loading…
Reference in New Issue
Block a user