mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
feat: spun up opencloud for projectsite
This commit is contained in:
parent
18fb5a81b4
commit
2117d74bbb
1 changed files with 29 additions and 17 deletions
|
|
@ -2,43 +2,55 @@
|
|||
let
|
||||
inherit (moduleFunctions.instancesFunctions)
|
||||
domain0
|
||||
servicePath
|
||||
sslPath
|
||||
sopsPath
|
||||
varPath
|
||||
mntPath
|
||||
secretPath
|
||||
;
|
||||
|
||||
label = "OpenCloud";
|
||||
name = "opencloud";
|
||||
subdomain = "cloud";
|
||||
domain = "${subdomain}.${domain0}";
|
||||
short = "cloud";
|
||||
domain = "${short}.${domain0}";
|
||||
secrets = "${secretPath}/${name}";
|
||||
ssl = "${sslPath}/${name}.${domain0}";
|
||||
in
|
||||
{
|
||||
label = label;
|
||||
name = name;
|
||||
short = "Cloud";
|
||||
email = {
|
||||
address0 = "noreply@${domain0}";
|
||||
};
|
||||
sops = {
|
||||
path0 = "${sopsPath}/${name}";
|
||||
};
|
||||
domains = {
|
||||
url0 = domain;
|
||||
};
|
||||
subdomain = subdomain;
|
||||
subdomain = short;
|
||||
tags = [
|
||||
name
|
||||
"opencloud"
|
||||
"cloud"
|
||||
];
|
||||
paths = {
|
||||
path0 = "${servicePath}/${label}";
|
||||
};
|
||||
ports = {
|
||||
port0 = 9200;
|
||||
};
|
||||
interface = {
|
||||
id = "vm-${short}";
|
||||
mac = "02:00:00:00:56:06";
|
||||
idUser = "vmuser-${short}";
|
||||
macUser = "02:00:00:00:00:06";
|
||||
ip = "192.168.50.116";
|
||||
gate = "192.168.50.1";
|
||||
ssh = 2206;
|
||||
};
|
||||
ssl = {
|
||||
cert = "${sslPath}/${subdomain}.${domain0}/fullchain.pem";
|
||||
key = "${sslPath}/${subdomain}.${domain0}/key.pem";
|
||||
path = ssl;
|
||||
cert = "${ssl}/fullchain.pem";
|
||||
key = "${ssl}/key.pem";
|
||||
};
|
||||
varPaths = {
|
||||
path0 = "${varPath}/${name}";
|
||||
};
|
||||
mntPaths = {
|
||||
path0 = "${mntPath}/${name}";
|
||||
};
|
||||
secretPaths = {
|
||||
path0 = secrets;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue