mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 13:32:15 -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
|
let
|
||||||
inherit (moduleFunctions.instancesFunctions)
|
inherit (moduleFunctions.instancesFunctions)
|
||||||
domain0
|
domain0
|
||||||
servicePath
|
|
||||||
sslPath
|
sslPath
|
||||||
sopsPath
|
varPath
|
||||||
|
mntPath
|
||||||
|
secretPath
|
||||||
;
|
;
|
||||||
|
|
||||||
label = "OpenCloud";
|
label = "OpenCloud";
|
||||||
name = "opencloud";
|
name = "opencloud";
|
||||||
subdomain = "cloud";
|
short = "cloud";
|
||||||
domain = "${subdomain}.${domain0}";
|
domain = "${short}.${domain0}";
|
||||||
|
secrets = "${secretPath}/${name}";
|
||||||
|
ssl = "${sslPath}/${name}.${domain0}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
label = label;
|
label = label;
|
||||||
name = name;
|
name = name;
|
||||||
short = "Cloud";
|
short = "Cloud";
|
||||||
email = {
|
|
||||||
address0 = "noreply@${domain0}";
|
|
||||||
};
|
|
||||||
sops = {
|
|
||||||
path0 = "${sopsPath}/${name}";
|
|
||||||
};
|
|
||||||
domains = {
|
domains = {
|
||||||
url0 = domain;
|
url0 = domain;
|
||||||
};
|
};
|
||||||
subdomain = subdomain;
|
subdomain = short;
|
||||||
tags = [
|
tags = [
|
||||||
name
|
name
|
||||||
"opencloud"
|
"opencloud"
|
||||||
"cloud"
|
"cloud"
|
||||||
];
|
];
|
||||||
paths = {
|
|
||||||
path0 = "${servicePath}/${label}";
|
|
||||||
};
|
|
||||||
ports = {
|
ports = {
|
||||||
port0 = 9200;
|
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 = {
|
ssl = {
|
||||||
cert = "${sslPath}/${subdomain}.${domain0}/fullchain.pem";
|
path = ssl;
|
||||||
key = "${sslPath}/${subdomain}.${domain0}/key.pem";
|
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