Compare commits
4 Commits
5265e6234e
...
8e43e4db39
Author | SHA1 | Date | |
---|---|---|---|
8e43e4db39 | |||
113a14cb9b | |||
75f691061b | |||
11e6ed35cc |
@ -358,32 +358,6 @@ in {
|
||||
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";
|
||||
scrape_interval = "20s";
|
||||
|
@ -1,14 +0,0 @@
|
||||
{ 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=";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -5,27 +5,23 @@
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
./blog.nix
|
||||
./bubblesort.nix
|
||||
./bula22.nix
|
||||
./chaosevents.nix
|
||||
./clerie.nix
|
||||
./drop.nix
|
||||
./fieldpoc.nix
|
||||
./gitea.nix
|
||||
./iot-data.nix
|
||||
./ip.nix
|
||||
./legal.nix
|
||||
./meow.nix
|
||||
./milchinsel.nix
|
||||
./mitel-ommclient2.nix
|
||||
./nix-install.nix
|
||||
./nogo2024.nix
|
||||
./nurausstieg.nix
|
||||
./ping.nix
|
||||
./public.nix
|
||||
./radicale.nix
|
||||
./reichartstrasse.nix
|
||||
./tap.nix
|
||||
./uptimestatus.nix
|
||||
./wetter.nix
|
||||
];
|
||||
|
@ -1,40 +0,0 @@
|
||||
{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;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
{ 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=";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
{ 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=";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user