mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-10 13:54:38 -05:00
refactor: complete overhaul
This commit is contained in:
parent
d99b004b5c
commit
2a2b90020b
2 changed files with 3 additions and 4 deletions
|
@ -1,14 +1,12 @@
|
||||||
{instancesFunctions}: let
|
{instancesFunctions}: let
|
||||||
inherit (instancesFunctions) sopsPath;
|
inherit (instancesFunctions) dummy;
|
||||||
|
|
||||||
nginxLabel = "Ngnix";
|
nginxLabel = "Ngnix";
|
||||||
nginxName = "nginx";
|
nginxName = "nginx";
|
||||||
in {
|
in {
|
||||||
name = nginxName;
|
name = nginxName;
|
||||||
label = nginxLabel;
|
label = nginxLabel;
|
||||||
sops = {
|
email = dummy;
|
||||||
path0 = "${sopsPath}/${nginxName}";
|
|
||||||
};
|
|
||||||
ports = {
|
ports = {
|
||||||
port0 = 8080; # HTTP
|
port0 = 8080; # HTTP
|
||||||
port1 = 8443; # HTTPS
|
port1 = 8443; # HTTPS
|
||||||
|
|
|
@ -11,6 +11,7 @@ let
|
||||||
sopsPath = "/var/lib/secrets";
|
sopsPath = "/var/lib/secrets";
|
||||||
sslPath = "/var/lib/acme";
|
sslPath = "/var/lib/acme";
|
||||||
varLib = "/var/lib";
|
varLib = "/var/lib";
|
||||||
|
dummy = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
instances = builtins.listToAttrs (map (name: {
|
instances = builtins.listToAttrs (map (name: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue