feat(etna): add cobalt instance
This commit is contained in:
parent
1344386e8a
commit
c8f8e2ed3c
4 changed files with 37 additions and 0 deletions
21
systems/etna/cobalt.nix
Normal file
21
systems/etna/cobalt.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ config, _utils, ... }:
|
||||
let
|
||||
tokens = _utils.setupSingleSecret config "cobaltTokens" { };
|
||||
in
|
||||
{
|
||||
imports = [ tokens.generate ];
|
||||
|
||||
cfTunnels."cobalt.uku3lig.net" = "http://localhost:9000";
|
||||
|
||||
virtualisation.oci-containers.containers.cobalt = {
|
||||
image = "ghcr.io/imputnet/cobalt:10";
|
||||
user = "root:root";
|
||||
ports = [ "9000:9000/tcp" ];
|
||||
volumes = [ "${tokens.path}:/keys.json:ro" ];
|
||||
environment = {
|
||||
API_URL = "https://cobalt.uku3lig.net";
|
||||
API_AUTH_REQUIRED = "1";
|
||||
API_KEY_URL = "file:///keys.json";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -28,6 +28,7 @@ in
|
|||
secrets.generate
|
||||
cfTunnelSecret.generate
|
||||
|
||||
./cobalt.nix
|
||||
./dendrite.nix
|
||||
./forgejo.nix
|
||||
./immich.nix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue