1
0

Compare commits

..

No commits in common. "8e43e4db394158442ae3d157f97843cd453c1135" and "5265e6234efd7e4ba46626a55d67d8e045ab2c22" have entirely different histories.

6 changed files with 119 additions and 0 deletions

View File

@ -358,6 +358,32 @@ in {
relabelAddressToInstance relabelAddressToInstance
]; ];
} }
{
job_name = "zimmer-temp";
scrape_interval = "20s";
scheme = "https";
metrics_path = "/data/zimmer-temp/";
static_configs = [
{
targets = [
"iot-data.clerie.de"
];
}
];
}
{
job_name = "outdoor-temp";
scrape_interval = "20s";
scheme = "https";
metrics_path = "/data/outdoor-temp/";
static_configs = [
{
targets = [
"iot-data.clerie.de"
];
}
];
}
{ {
job_name = "xmpp-alerts"; job_name = "xmpp-alerts";
scrape_interval = "20s"; scrape_interval = "20s";

View File

@ -0,0 +1,14 @@
{ pkgs, ... }:
{
services.nginx.virtualHosts = {
"bubblesort.clerie.de" = {
enableACME = true;
forceSSL = true;
root = pkgs.fetchgit {
url = "https://git.clerie.de/clerie/bubblesort_js.git";
rev = "39d54701a11f4fb48d7e023e384a848e6bde5640";
sha256 = "sha256-au/sbTVLDER0BbXD6cKJIpq0GcS/saiRQw46mZQWsO0=";
};
};
};
}

View File

@ -5,23 +5,27 @@
[ [
./hardware-configuration.nix ./hardware-configuration.nix
./blog.nix ./blog.nix
./bubblesort.nix
./bula22.nix ./bula22.nix
./chaosevents.nix ./chaosevents.nix
./clerie.nix ./clerie.nix
./drop.nix ./drop.nix
./fieldpoc.nix ./fieldpoc.nix
./gitea.nix ./gitea.nix
./iot-data.nix
./ip.nix ./ip.nix
./legal.nix ./legal.nix
./meow.nix ./meow.nix
./milchinsel.nix ./milchinsel.nix
./mitel-ommclient2.nix ./mitel-ommclient2.nix
./nix-install.nix ./nix-install.nix
./nogo2024.nix
./nurausstieg.nix ./nurausstieg.nix
./ping.nix ./ping.nix
./public.nix ./public.nix
./radicale.nix ./radicale.nix
./reichartstrasse.nix ./reichartstrasse.nix
./tap.nix
./uptimestatus.nix ./uptimestatus.nix
./wetter.nix ./wetter.nix
]; ];

40
hosts/web-2/iot-data.nix Normal file
View File

@ -0,0 +1,40 @@
{pkgs, ...}:
{
users.users.iot-data = {
description = "IOT Data Service";
group = "iot-data";
home = "/var/lib/iot-data/";
useDefaultShell = true;
isSystemUser = true;
};
users.groups.iot-data = {};
systemd.services.iot-data = {
wantedBy = [ "multi-user.target" ];
serviceConfig = {
RuntimeDirectory = "iot-data";
StateDirectory = "iot-data";
User = "iot-data";
Group = "iot-data";
};
environment = {
IOT_DATA_CONFIG = "/var/src/iot-data-config.json";
};
script = "gunicorn -w 1 -b [::1]:8235 iot_data:app";
path = with pkgs; [ (python3.withPackages (ps: [ ps.gunicorn iot-data ])) ];
};
services.nginx.virtualHosts = {
"iot-data.clerie.de" = {
enableACME = true;
addSSL = true;
locations."/" = {
proxyPass = "http://[::1]:8235";
};
extraConfig = ''
access_log off;
'';
};
};
}

20
hosts/web-2/nogo2024.nix Normal file
View File

@ -0,0 +1,20 @@
{ pkgs, ... }:
{
services.nginx.virtualHosts = {
"nogo2024.clerie.de" = {
enableACME = true;
forceSSL = true;
locations."/" = {
return = "404";
};
locations."= /nogo2024.ics" = {
root = pkgs.fetchgit {
url = "https://git.clerie.de/clerie/nogo2024.git";
rev = "fdc07667e6cfa09e91eaaee488528fb842a6115d";
sha256 = "sha256-qRviw0sQnMmrkwBO0+AWnmeqZK8wXeFxZJgmLMUtzn4=";
};
};
};
};
}

15
hosts/web-2/tap.nix Normal file
View File

@ -0,0 +1,15 @@
{ pkgs, ... }:
{
services.nginx.virtualHosts = {
"tap.clerie.de" = {
enableACME = true;
forceSSL = true;
root = pkgs.fetchgit {
url = "https://git.clerie.de/clerie/tap.clerie.de.git";
rev = "a90df6f6cb6dc58ab807b230527aae76c48cdcc8";
sha256 = "sha256-GTUy98NHXvR7pG8lUWZm6wa0XjULnDTSu17C/DQuXBI=";
};
};
};
}