forked from Fediversity/Fediversity
parent
4e30363c5f
commit
3354c89503
4 changed files with 59 additions and 0 deletions
|
@ -10,4 +10,10 @@
|
||||||
gateway = "2a00:51c0:13:1305::1";
|
gateway = "2a00:51c0:13:1305::1";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixos.module = {
|
||||||
|
imports = [
|
||||||
|
./fedipanel.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
38
infra/machines/fedi201/fedipanel.nix
Normal file
38
infra/machines/fedi201/fedipanel.nix
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
name = "panel";
|
||||||
|
panel = (import ../../panel/default.nix { }).package;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../../panel/nix/configuration.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
panel
|
||||||
|
];
|
||||||
|
|
||||||
|
security.acme = {
|
||||||
|
acceptTerms = true;
|
||||||
|
defaults.email = "beheer@procolix.com";
|
||||||
|
};
|
||||||
|
|
||||||
|
services.${name} = {
|
||||||
|
enable = true;
|
||||||
|
package = panel;
|
||||||
|
production = true;
|
||||||
|
domain = "demo.fediversity.eu";
|
||||||
|
host = "0.0.0.0";
|
||||||
|
secrets = {
|
||||||
|
SECRET_KEY = config.age.secrets.panel-secret-key.path;
|
||||||
|
};
|
||||||
|
port = 80;
|
||||||
|
settings = {
|
||||||
|
DATABASE_URL = "sqlite:///var/lib/${name}/db.sqlite3";
|
||||||
|
CREDENTIALS_DIRECTORY = "/var/lib/${name}/.credentials";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
14
secrets/panel-secret-key.age
Normal file
14
secrets/panel-secret-key.age
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 BAs8QA 0TS+HcjtKeUAsLyzrsnCbj53GAq7pvXF12yQSxaxuFs
|
||||||
|
IjmmZV2Zh4cwj1+7r/fAKnuftpl46P5fO6SxtRMevIM
|
||||||
|
-> ssh-ed25519 ofQnlg b4maqJdxyyi7b3arE9sxySwqeFjFlC6oT+PgQjIGj0Y
|
||||||
|
Gi5d4sJa0te/MsbkKYIOByIQ+TXBgu7hh2InES1pvXw
|
||||||
|
-> ssh-ed25519 COspvA RiXEgUbPi3vep/8fM/RuRUYhCfBHO1XZt6Ov3WPnkV0
|
||||||
|
tTMLMb92ct5Zkqt42y8R3UI/zblAbsuEammavVcwGOU
|
||||||
|
-> ssh-ed25519 1MUEqQ XxxSvZrI9S6FI7CwYOSKDlfVBdLTur7/07Sm2HHLJwg
|
||||||
|
iW5PduiY/7N2kSJpBzmfnt8aNWKPfLZ43Kq6fyLeydw
|
||||||
|
-> ssh-ed25519 ChtTUw zixDXeL07d4+pzFBSt/1f8yB+QxXOMv6sE6h469YzVs
|
||||||
|
rSC9S8v9gmtBw9FMKLg0h0muCmfMRuFD24JpTVw3ALc
|
||||||
|
--- vf2SwG1rpxjri3TGARwdMBc/mccj6RSTgf54YeQeR/8
|
||||||
|
În9…K±¼‰îÁäÞÈ9÷y¼¿«dMÈdWn@õYç0ì.ü½ž1uÜ›oÚ«¨Á¾jý<6A>iý`
|
||||||
|
<EFBFBD>;1
|
|
@ -27,6 +27,7 @@ concatMapAttrs
|
||||||
forgejo-database-password = [ vm02116 ];
|
forgejo-database-password = [ vm02116 ];
|
||||||
forgejo-email-password = [ vm02116 ];
|
forgejo-email-password = [ vm02116 ];
|
||||||
forgejo-runner-token = [ ];
|
forgejo-runner-token = [ ];
|
||||||
|
panel-secret-key = [ fedi201 ];
|
||||||
wiki-basicauth-htpasswd = [ vm02187 ];
|
wiki-basicauth-htpasswd = [ vm02187 ];
|
||||||
wiki-password = [ vm02187 ];
|
wiki-password = [ vm02187 ];
|
||||||
wiki-smtp-password = [ vm02187 ];
|
wiki-smtp-password = [ vm02187 ];
|
||||||
|
|
Loading…
Add table
Reference in a new issue