[general] update local vm ip addresses

This commit is contained in:
2026-02-20 19:59:27 +01:00
parent b012b89a48
commit e46c6bef00
9 changed files with 27 additions and 24 deletions

View File

@@ -29,7 +29,6 @@ with lib;
enable = true; enable = true;
enablePromtail = true; enablePromtail = true;
logNginx = true; logNginx = true;
lokiHost = "10.0.0.14";
}; };
services.malobeo-tasklist.enable = true; services.malobeo-tasklist.enable = true;

View File

@@ -2,6 +2,7 @@
let let
sshKeys = import ../ssh_keys.nix; sshKeys = import ../ssh_keys.nix;
peers = import ../modules/malobeo/peers.nix; peers = import ../modules/malobeo/peers.nix;
hosts = import ../hosts.nix {};
in in
{ {
sops.defaultSopsFile = ./secrets.yaml; sops.defaultSopsFile = ./secrets.yaml;
@@ -35,7 +36,7 @@ in
enable = true; enable = true;
enablePromtail = true; enablePromtail = true;
logNginx = true; logNginx = true;
lokiHost = "10.0.0.14"; lokiHost = hosts.malobeo.hosts.overwatch.network.address;
}; };
malobeo.autoUpdate = { malobeo.autoUpdate = {
@@ -169,7 +170,7 @@ in
enable = true; enable = true;
virtualHosts."docs.malobeo.org" = { virtualHosts."docs.malobeo.org" = {
locations."/" = { locations."/" = {
proxyPass = "http://10.0.0.11:9000"; proxyPass = "http://${hosts.malobeo.hosts.infradocs.network.address}:9000";
extraConfig = '' extraConfig = ''
proxy_set_header Host $host; proxy_set_header Host $host;
''; '';
@@ -181,7 +182,7 @@ in
enableACME = true; enableACME = true;
acmeRoot = null; acmeRoot = null;
locations."/" = { locations."/" = {
proxyPass = "http://192.168.1.13"; proxyPass = "http://${hosts.malobeo.hosts.nextcloud.network.address}";
extraConfig = '' extraConfig = ''
proxy_set_header Host $host; proxy_set_header Host $host;
client_max_body_size ${inputs.self.nixosConfigurations.nextcloud.config.services.nextcloud.maxUploadSize}; client_max_body_size ${inputs.self.nixosConfigurations.nextcloud.config.services.nextcloud.maxUploadSize};
@@ -196,7 +197,7 @@ in
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://192.168.1.13"; proxyPass = "http://${hosts.malobeo.hosts.nextcloud.network.address}";
extraConfig = '' extraConfig = ''
proxy_set_header Host $host; proxy_set_header Host $host;
client_max_body_size ${inputs.self.nixosConfigurations.nextcloud.config.services.nextcloud.maxUploadSize}; client_max_body_size ${inputs.self.nixosConfigurations.nextcloud.config.services.nextcloud.maxUploadSize};
@@ -209,7 +210,7 @@ in
virtualHosts."grafana.malobeo.org" = { virtualHosts."grafana.malobeo.org" = {
locations."/" = { locations."/" = {
proxyPass = "http://10.0.0.14"; proxyPass = "http://${hosts.malobeo.hosts.overwatch.network.address}";
extraConfig = '' extraConfig = ''
proxy_set_header Host $host; proxy_set_header Host $host;
''; '';
@@ -218,7 +219,7 @@ in
virtualHosts."tasklist.malobeo.org" = { virtualHosts."tasklist.malobeo.org" = {
locations."/" = { locations."/" = {
proxyPass = "http://10.0.0.5:8080"; proxyPass = "http://${hosts.malobeo.hosts.durruti.network.address}:8080";
extraConfig = '' extraConfig = ''
proxy_set_header Host $host; proxy_set_header Host $host;
''; '';
@@ -230,7 +231,7 @@ in
enableACME = true; enableACME = true;
acmeRoot = null; acmeRoot = null;
locations."/" = { locations."/" = {
proxyPass = "http://192.168.1.15:8080"; proxyPass = "http://${hosts.malobeo.hosts.zineshop.network.address}:8080";
extraConfig = '' extraConfig = ''
proxy_set_header Host $host; proxy_set_header Host $host;
@@ -249,7 +250,7 @@ in
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://192.168.1.15:8080"; proxyPass = "http://${hosts.malobeo.hosts.zineshop.network.address}:8080";
extraConfig = '' extraConfig = ''
proxy_set_header Host $host; proxy_set_header Host $host;

View File

@@ -19,7 +19,6 @@ with lib;
enable = true; enable = true;
enablePromtail = true; enablePromtail = true;
logNginx = true; logNginx = true;
lokiHost = "10.0.0.14";
}; };
system.stateVersion = "22.11"; # Did you read the comment? system.stateVersion = "22.11"; # Did you read the comment?

View File

@@ -1,6 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let
cfg = config.malobeo.metrics; cfg = config.malobeo.metrics;
hosts = import ../../hosts.nix {};
in in
{ {
options.malobeo.metrics = { options.malobeo.metrics = {
@@ -21,7 +22,7 @@ in
}; };
lokiHost = lib.mkOption { lokiHost = lib.mkOption {
type = lib.types.str; type = lib.types.str;
default = "10.0.0.14"; default = hosts.malobeo.hosts.overwatch.network.address;
description = "Address of loki host"; description = "Address of loki host";
}; };
}; };

View File

@@ -2,6 +2,9 @@
with lib; with lib;
let
hosts = import ../hosts.nix {};
in
{ {
sops.defaultSopsFile = ./secrets.yaml; sops.defaultSopsFile = ./secrets.yaml;
sops.secrets = { sops.secrets = {
@@ -28,7 +31,6 @@ with lib;
enable = true; enable = true;
enablePromtail = true; enablePromtail = true;
logNginx = true; logNginx = true;
lokiHost = "10.0.0.14";
}; };
services.postgresqlBackup = { services.postgresqlBackup = {
@@ -59,8 +61,8 @@ with lib;
}; };
}; };
settings = { settings = {
trusted_domains = ["10.0.0.13"]; trusted_domains = [ "cloud.malobeo.org" ];
trusted_proxies = [ "10.0.0.1" ]; trusted_proxies = [ hosts.malobeo.hosts.fanny.network.address ];
"maintenance_window_start" = "1"; "maintenance_window_start" = "1";
"default_phone_region" = "DE"; "default_phone_region" = "DE";
}; };

View File

@@ -2,6 +2,9 @@
with lib; with lib;
let
hosts = import ../hosts.nix {};
in
{ {
networking = { networking = {
hostName = mkDefault "overwatch"; hostName = mkDefault "overwatch";
@@ -21,7 +24,6 @@ with lib;
enable = true; enable = true;
enablePromtail = true; enablePromtail = true;
logNginx = false; logNginx = false;
lokiHost = "10.0.0.14";
}; };
services.grafana = { services.grafana = {
@@ -101,31 +103,31 @@ with lib;
{ {
job_name = "durruti"; job_name = "durruti";
static_configs = [{ static_configs = [{
targets = [ "10.0.0.5:9002" ]; targets = [ "${hosts.malobeo.hosts.durruti.network.address}:9002" ];
}]; }];
} }
{ {
job_name = "infradocs"; job_name = "infradocs";
static_configs = [{ static_configs = [{
targets = [ "10.0.0.11:9002" ]; targets = [ "${hosts.malobeo.hosts.infradocs.network.address}:9002" ];
}]; }];
} }
{ {
job_name = "nextcloud"; job_name = "nextcloud";
static_configs = [{ static_configs = [{
targets = [ "10.0.0.13:9002" ]; targets = [ "${hosts.malobeo.hosts.nextcloud.network.address}:9002" ];
}]; }];
} }
{ {
job_name = "zineshop"; job_name = "zineshop";
static_configs = [{ static_configs = [{
targets = [ "10.0.0.15:9002" ]; targets = [ "${hosts.malobeo.hosts.zineshop.network.address}:9002" ];
}]; }];
} }
{ {
job_name = "fanny"; job_name = "fanny";
static_configs = [{ static_configs = [{
targets = [ "10.0.0.1:9002" ]; targets = [ "${hosts.malobeo.hosts.fanny.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

View File

@@ -23750,8 +23750,8 @@
}, },
{ {
"current": { "current": {
"text": "10.0.0.13:9002", "text": "192.168.1.13:9002",
"value": "10.0.0.13:9002" "value": "192.168.1.13:9002"
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",

View File

@@ -6,7 +6,7 @@ positions:
filename: /tmp/positions.yaml filename: /tmp/positions.yaml
clients: clients:
- url: http://10.0.0.13:3100/loki/api/v1/push - url: http://192.168.1.13:3100/loki/api/v1/push
scrape_configs: scrape_configs:

View File

@@ -20,7 +20,6 @@ with lib;
enable = true; enable = true;
enablePromtail = true; enablePromtail = true;
logNginx = true; logNginx = true;
lokiHost = "10.0.0.14";
}; };
services.printing.enable = true; services.printing.enable = true;