mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-08 21:04:38 -05:00
feat: opencloud test
This commit is contained in:
parent
d557f2c07c
commit
34828ec16b
2 changed files with 17 additions and 8 deletions
|
@ -1,10 +1,22 @@
|
|||
{ config, flake, ... }:
|
||||
{
|
||||
config,
|
||||
flake,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.machines.devices) ceres;
|
||||
inherit (flake.config.services.instances) opencloud web;
|
||||
service = opencloud;
|
||||
localhost = web.localhost.address1;
|
||||
host = service.domains.url0;
|
||||
|
||||
secretValue = builtins.readFile config.sops.secrets."${service.name}-pass".path;
|
||||
|
||||
envFile = pkgs.writeText "${service.sops.path0}/opencloud.env" ''
|
||||
ADMIN_PASSWORD=${secretValue}
|
||||
OC_INSECURE=true
|
||||
'';
|
||||
in
|
||||
{
|
||||
services = {
|
||||
|
@ -14,10 +26,7 @@ in
|
|||
port = service.ports.port0;
|
||||
address = localhost;
|
||||
stateDir = "/var/lib/${service.name}";
|
||||
environment = {
|
||||
OC_INSECURE = "true";
|
||||
};
|
||||
environmentFile = config.sops.secrets."${service.name}-pass".path;
|
||||
environmentFile = envFile;
|
||||
};
|
||||
caddy = {
|
||||
virtualHosts = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue