Compare commits
No commits in common. "2382510f1674495e0b443904436301638022d922" and "ef23fded853f9bf05ee8b69fd4103494f53baecd" have entirely different histories.
2382510f16
...
ef23fded85
|
@ -20,11 +20,10 @@
|
||||||
./services/gitea.nix
|
./services/gitea.nix
|
||||||
./services/hedgedoc.nix
|
./services/hedgedoc.nix
|
||||||
./services/home-assistant.nix
|
./services/home-assistant.nix
|
||||||
./services/keycloak.nix
|
|
||||||
./services/matrix
|
./services/matrix
|
||||||
./services/microbin.nix
|
|
||||||
# ./services/minecraft.nix
|
|
||||||
./services/monitoring
|
./services/monitoring
|
||||||
|
./services/microbin.nix
|
||||||
|
#./services/minecraft.nix
|
||||||
./services/vaultwarden.nix
|
./services/vaultwarden.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,7 @@ in {
|
||||||
OPENID_CONNECT_SCOPES = "email profile openid";
|
OPENID_CONNECT_SCOPES = "email profile openid";
|
||||||
UPDATE_AVATAR = true;
|
UPDATE_AVATAR = true;
|
||||||
ACCOUNT_LINKING = "auto";
|
ACCOUNT_LINKING = "auto";
|
||||||
|
USERNAME = "email";
|
||||||
};
|
};
|
||||||
|
|
||||||
log.LEVEL = "Info";
|
log.LEVEL = "Info";
|
||||||
|
@ -48,7 +49,11 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: configure mailer
|
# TODO:
|
||||||
|
# - Backup
|
||||||
|
# - services.gitea.dump?
|
||||||
|
# - ZFS snapshots?
|
||||||
|
# - configure mailer
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.gitea.serviceConfig.WorkingDirectory = lib.mkForce "${cfg.stateDir}/work";
|
systemd.services.gitea.serviceConfig.WorkingDirectory = lib.mkForce "${cfg.stateDir}/work";
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
{ config, pkgs, lib, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.services.keycloak.settings;
|
|
||||||
in {
|
|
||||||
environment.noXlibs = false;
|
|
||||||
sops.secrets."keycloak/postgres" = { };
|
|
||||||
|
|
||||||
services.keycloak = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
database = {
|
|
||||||
type = "postgresql";
|
|
||||||
createLocally = true;
|
|
||||||
username = "keycloak";
|
|
||||||
passwordFile = config.sops.secrets."keycloak/postgres".path;
|
|
||||||
};
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
cache = "local";
|
|
||||||
hostname = "iam.feal.no";
|
|
||||||
hostname-strict-backchannel = true;
|
|
||||||
http-enable = true;
|
|
||||||
http-host = "127.0.1.2";
|
|
||||||
http-port = 5060;
|
|
||||||
proxy = "edge";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# The main reverse proxy is defined in ./nginx.nix
|
|
||||||
services.nginx.virtualHosts.${cfg.hostname} = {
|
|
||||||
locations."= /".return = "302 https://${cfg.hostname}/realms/master/account";
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,8 +1,5 @@
|
||||||
{ config, values, ... }:
|
{ config, values, ... }:
|
||||||
let
|
{
|
||||||
gitea = config.services.gitea.settings;
|
|
||||||
keycloak = config.services.keycloak.settings;
|
|
||||||
in {
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableReload = true;
|
enableReload = true;
|
||||||
|
@ -63,8 +60,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"cloud.feal.no" = publicProxy "http://voyager.home.feal.no" {};
|
"cloud.feal.no" = publicProxy "http://voyager.home.feal.no" {};
|
||||||
"git.feal.no" = publicProxy "http://unix:${gitea.server.HTTP_ADDR}" {};
|
"git.feal.no" = publicProxy "http://unix:${config.services.gitea.settings.server.HTTP_ADDR}" {};
|
||||||
"jf.feal.no" = publicProxy "http://jellyfin.home.feal.no/" {};
|
"jf.feal.no" = publicProxy "http://jellyfin.home.feal.no/" {};
|
||||||
"iam.feal.no" = publicProxy "http://${keycloak.http-host}:${toString keycloak.http-port}" {};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,8 +10,6 @@ microbin:
|
||||||
borg:
|
borg:
|
||||||
postgres: ENC[AES256_GCM,data:vwfLF2qkUMl9b/4oYVm+pzfbbw==,iv:+QlTXjowne2d+ufw9YbhgaAIVvYg78LkMS0BqfPwoRI=,tag:JAbR3/DbYp+vRApJteg4zA==,type:str]
|
postgres: ENC[AES256_GCM,data:vwfLF2qkUMl9b/4oYVm+pzfbbw==,iv:+QlTXjowne2d+ufw9YbhgaAIVvYg78LkMS0BqfPwoRI=,tag:JAbR3/DbYp+vRApJteg4zA==,type:str]
|
||||||
gitea: ENC[AES256_GCM,data:GIZ/wkzEkm6DUZETv8GpXd8k5w==,iv:MLnVtrev+poT+3D5+o5UV8FBQWpvqlYAkcXMF53bKJw=,tag:89zkLJNZw04ZPyqvpspgsw==,type:str]
|
gitea: ENC[AES256_GCM,data:GIZ/wkzEkm6DUZETv8GpXd8k5w==,iv:MLnVtrev+poT+3D5+o5UV8FBQWpvqlYAkcXMF53bKJw=,tag:89zkLJNZw04ZPyqvpspgsw==,type:str]
|
||||||
keycloak:
|
|
||||||
postgres: ENC[AES256_GCM,data:OYvpSyBAQfAJg4/syz1r,iv:Ge6m63YPl+gJPepIRmBz747bXqUo65MHQaRn1S/8m2I=,tag:18bFwYtmcslXlgflfYqM8w==,type:str]
|
|
||||||
sops:
|
sops:
|
||||||
kms: []
|
kms: []
|
||||||
gcp_kms: []
|
gcp_kms: []
|
||||||
|
@ -36,8 +34,8 @@ sops:
|
||||||
RXcvQU1JYnl0bUtocTZuNkRxcGQwR2MKnyAYtF2y7XBmNuIYi6RzqEJEPPg7B22A
|
RXcvQU1JYnl0bUtocTZuNkRxcGQwR2MKnyAYtF2y7XBmNuIYi6RzqEJEPPg7B22A
|
||||||
fQVeDfIhiNSVva784KTU+y4TU1UPxumriRrLRFPF3h42ZEq2zQAgrQ==
|
fQVeDfIhiNSVva784KTU+y4TU1UPxumriRrLRFPF3h42ZEq2zQAgrQ==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2024-06-07T19:36:11Z"
|
lastmodified: "2024-03-08T00:37:40Z"
|
||||||
mac: ENC[AES256_GCM,data:WOLO+WYzu1svAqnX8PTnzoSB//hLJ11FfcSWk0/bnQjpOyxQ0Ey7juNyMMe+EuhZ0NZ6JE6MkHk2uVdgSmRIKdxBTSoZuzCllRB4vv1lAABPllOljpjEoDKbZBmiOereE4dwY8AFsFl5uHVqzQ2uvO6FUKY9/vgvXuSABZsN0+w=,iv:wQKa7EiBIYogELOgKotUdxgld/HwIJf9EWpMAZS8D/0=,tag:6auS6hruXlcmiQsphk4tVA==,type:str]
|
mac: ENC[AES256_GCM,data:2S6Z4ZqffGA5Clz+h4J44s7yhb6lMFdUq9KpE4IJUu2cgJyD1Zsh0i1Z1ZwTiD7MH+F1UUMyVhBYk6Fkm1UY07wmDLodNkKfpKRnU2EGa4+yQudin2QHsId+k3C2iAI1UtGlL5Vi00p5VZfihuntcAbwn63RZriCrKn0ayzTQKw=,iv:bwQECQCQghG0DTeWrg73IlFwmz8Fob2ftLKM3kaKOE4=,tag:8HXjvNnzqmIprsXd5d/SmA==,type:str]
|
||||||
pgp: []
|
pgp: []
|
||||||
unencrypted_suffix: _unencrypted
|
unencrypted_suffix: _unencrypted
|
||||||
version: 3.8.1
|
version: 3.8.1
|
||||||
|
|
Loading…
Reference in New Issue