Compare commits
12
Commits
ip_changes
...
portal
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cdb9563f38 | ||
|
|
2451e74e7b | ||
|
|
2b434bb614 | ||
|
|
890f4b87b0 | ||
|
|
15fef173e0 | ||
|
|
cb0efe1a6b | ||
|
|
37043914df | ||
|
|
b0fd8cf5e9 | ||
|
|
a256b4eceb | ||
|
|
0862da3576 | ||
|
|
9c884e553c | ||
|
|
fcb9642023 |
Generated
+59
-4
@@ -278,6 +278,27 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"portal": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"utils": "utils_3"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1793727485,
|
||||||
|
"narHash": "sha256-zpTS/6sgapW7cZqPNqQ4wMHoxXsKZZPby+RpPxZVxAo=",
|
||||||
|
"ref": "refs/heads/master",
|
||||||
|
"rev": "3cc90f3a470e95e3c79edaa1539173ae6d76874c",
|
||||||
|
"revCount": 20,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.dynamicdiscord.de/malobeo/portal"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.dynamicdiscord.de/malobeo/portal"
|
||||||
|
}
|
||||||
|
},
|
||||||
"pyproject-build-systems": {
|
"pyproject-build-systems": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -341,9 +362,10 @@
|
|||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs_3",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
|
"portal": "portal",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
"tasklist": "tasklist",
|
"tasklist": "tasklist",
|
||||||
"utils": "utils_3",
|
"utils": "utils_4",
|
||||||
"zineshop": "zineshop"
|
"zineshop": "zineshop"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -443,6 +465,21 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"systems_5": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"tasklist": {
|
"tasklist": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -503,6 +540,24 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_3"
|
"systems": "systems_3"
|
||||||
},
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1791914995,
|
||||||
|
"narHash": "sha256-Zf/xfQEAasnwnmEfHqW/4hjDE/s44yn2hD4RuVIZRjA=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "b7a79d3fea1e214f6d668d521cecec0c01e26544",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"utils_4": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems_4"
|
||||||
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731533236,
|
"lastModified": 1731533236,
|
||||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||||
@@ -517,9 +572,9 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"utils_4": {
|
"utils_5": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_4"
|
"systems": "systems_5"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731533236,
|
"lastModified": 1731533236,
|
||||||
@@ -565,7 +620,7 @@
|
|||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"utils": "utils_4"
|
"utils": "utils_5"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792488750,
|
"lastModified": 1792488750,
|
||||||
|
|||||||
@@ -32,6 +32,11 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
portal = {
|
||||||
|
url = "git+https://git.dynamicdiscord.de/malobeo/portal";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
ep3-bs = {
|
ep3-bs = {
|
||||||
url = "git+https://git.dynamicdiscord.de/kalipso/ep3-bs.nix";
|
url = "git+https://git.dynamicdiscord.de/kalipso/ep3-bs.nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|||||||
@@ -149,6 +149,7 @@ in
|
|||||||
"antamap"
|
"antamap"
|
||||||
"ns1"
|
"ns1"
|
||||||
"wordpress"
|
"wordpress"
|
||||||
|
"portal"
|
||||||
];
|
];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
@@ -184,6 +185,22 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
virtualHosts."portal.hq.malobeo.org" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
acmeRoot = null;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://${hosts.malobeo.hosts.portal.network.address}:8080";
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
client_max_body_size ${inputs.self.nixosConfigurations.nextcloud.config.services.nextcloud.maxUploadSize};
|
||||||
|
client_body_timeout 3600s;
|
||||||
|
send_timeout 3600s;
|
||||||
|
fastcgi_buffers 64 4K;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
virtualHosts."cloud.hq.malobeo.org" = {
|
virtualHosts."cloud.hq.malobeo.org" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 1883];
|
networking.firewall.allowedTCPPorts = [ 80 443 1883 8000 ];
|
||||||
|
|
||||||
system.stateVersion = "23.05";
|
system.stateVersion = "23.05";
|
||||||
}
|
}
|
||||||
|
|||||||
+7
-2
@@ -146,10 +146,15 @@ in
|
|||||||
|
|
||||||
wordpress = {
|
wordpress = {
|
||||||
type = "microvm";
|
type = "microvm";
|
||||||
network = createMaloNet "21" "52:DA:0D:F9:EF:F6";
|
network = createMaloNet "21" "52:DA:0D:F9:EF:F7";
|
||||||
};
|
};
|
||||||
|
|
||||||
# last host id: 21
|
portal = {
|
||||||
|
type = "microvm";
|
||||||
|
network = createMaloNet "22" "52:DA:0D:F9:EF:F8";
|
||||||
|
};
|
||||||
|
|
||||||
|
# last host id: 22
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ let
|
|||||||
hosts = import ../hosts.nix {};
|
hosts = import ../hosts.nix {};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
microvm.vcpu = 2;
|
||||||
sops.defaultSopsFile = ./secrets.yaml;
|
sops.defaultSopsFile = ./secrets.yaml;
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
nextcloudAdminPass = {
|
nextcloudAdminPass = {
|
||||||
@@ -39,7 +40,7 @@ in
|
|||||||
|
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.nextcloud34;
|
package = pkgs.nextcloud35;
|
||||||
hostName = "cloud.malobeo.org";
|
hostName = "cloud.malobeo.org";
|
||||||
config.adminpassFile = config.sops.secrets.nextcloudAdminPass.path;
|
config.adminpassFile = config.sops.secrets.nextcloudAdminPass.path;
|
||||||
maxUploadSize = "10G";
|
maxUploadSize = "10G";
|
||||||
|
|||||||
@@ -270,6 +270,12 @@ in
|
|||||||
targets = [ "${hosts.malobeo.hosts.wordpress.network.address}:9002" ];
|
targets = [ "${hosts.malobeo.hosts.wordpress.network.address}:9002" ];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
job_name = "portal";
|
||||||
|
static_configs = [{
|
||||||
|
targets = [ "${hosts.malobeo.hosts.zineshop.network.address}:9002" ];
|
||||||
|
}];
|
||||||
|
}
|
||||||
# add vpn - check how to reach it first. most probably 10.100.0.1
|
# add vpn - check how to reach it first. most probably 10.100.0.1
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -0,0 +1,46 @@
|
|||||||
|
{ self, config, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
hosts = import ../hosts.nix {};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
networking = {
|
||||||
|
hostName = mkDefault "portal";
|
||||||
|
useDHCP = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
inputs.malobeo.nixosModules.malobeo.metrics
|
||||||
|
inputs.malobeo.nixosModules.malobeo.printing
|
||||||
|
inputs.portal.nixosModules.portal
|
||||||
|
inputs.self.nixosModules.malobeo.users
|
||||||
|
../modules/sshd.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
malobeo.metrics = {
|
||||||
|
enable = true;
|
||||||
|
enablePromtail = true;
|
||||||
|
logNginx = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
malobeo.users = {
|
||||||
|
admin = true;
|
||||||
|
backup = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.printing.enable = true;
|
||||||
|
services.malobeo.printing.enable = true;
|
||||||
|
|
||||||
|
services.portal = {
|
||||||
|
enable = true;
|
||||||
|
#TODO: we should use FQDN like gatekeeper.hq.malobeo.org
|
||||||
|
gatekeeperHost = "${hosts.malobeo.hosts.goldman.network.address}:8000";
|
||||||
|
gatekeeperScheme = "http";
|
||||||
|
};
|
||||||
|
networking.firewall.allowedTCPPorts = [ 8080 ];
|
||||||
|
|
||||||
|
system.stateVersion = "22.11"; # Did you read the comment?
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user