-
Notifications
You must be signed in to change notification settings - Fork 1
/
opnborg-docker-complex.nix
52 lines (52 loc) · 2.15 KB
/
opnborg-docker-complex.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{config, ...}: {
####################
#-=# NETWORKING #=-#
####################
networking = {
firewall = {
allowedTCPPorts = [6464];
};
};
########################
#-=# VIRTUALISATION #=-#
########################
virtualisation = {
oci-containers = {
backend = "podman";
containers = {
opnborg = {
image = "ghcr.io/paepckehh/opnborg";
volumes = ["/var/opnborg:/var/opnborg"];
extraOptions = ["--network=host"];
environment = {
"OPN_PATH" = "/var/opnborg";
"OPN_APIKEY" = "+RIb6YWNdcDWMMM7W5ZYDkUvP4qx6e1r7e/Lg/Uh3aBH+veuWfKc7UvEELH/lajWtNxkOaOPjWR8uMcD";
"OPN_APISECRET" = "8VbjM3HKKqQW2ozOe5PTicMXOBVi9jZTSPCGfGrHp8rW6m+TeTxHyZyAI1GjERbuzjmz6jK/usMCWR/p";
"OPN_TLSKEYPIN" = "8VbjM3HKKqQW2ozOe5PTicMXOBVi9jZTSPCGfGrHp8rW6m+TeTxHyZyAI1GjERbuzjmz6jK/usMCWR/p";
"OPN_MASTER" = "opn00.lan:8443";
"OPN_TARGETS_HOTSTANDBY" = "opn00.lan:8443";
"OPN_TARGETS_PRODUCTION" = "opn01.lan:8443,opn02.lan:8443";
"OPN_TARGETS_IMGURL_HOTSTANDBY" = "https://icon-library.com/images/freebsd-icon/freebsd-icon-16.jpg";
"OPN_TARGETS_IMGURL_PRODUCTION" = "https://icon-library.com/images/freebsd-icon/freebsd-icon-16.jpg";
"OPN_SLEEP" = "60";
"OPN_DEBUG" = "true";
"OPN_SYNC_PKG" = "true";
"OPN_HTTPD_ENABLE" = "true";
"OPN_HTTPD_SERVER" = "127.0.0.1:6464";
"OPN_HTTPD_COLOR_FG" = "white";
"OPN_HTTPD_COLOR_BG" = "grey";
"OPN_RSYSLOG_ENABLE" = "true";
"OPN_RSYSLOG_SERVER" = "192.168.122.1:5140";
"OPN_GRAFANA_WEBUI" = "http://localhost:9090";
"OPN_GRAFANA_DASHBOARD_FREEBSD" = "Kczn-jPZz/node-exporter-freebsd";
"OPN_GRAFANA_DASHBOARD_HAPROXY" = "rEqu1u-5ue/haproxy-2-full";
"OPN_GRAFANA_DASHBOARD_UNPOLLER" = "bbtr-sdzvfd/unpoller";
"OPN_UNIFI_WEBUI" = "http://localhost:9494";
"OPN_WAZUH_WEBUI" = "http://localhost:9292";
"OPN_PROMETHEUS_WEBUI" = "http://localhost:9191";
};
};
};
};
};
}