hosts/web-2: Remove iot-data.clerie.de
This commit is contained in:
parent
75f691061b
commit
113a14cb9b
@ -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";
|
||||
|
@ -11,7 +11,6 @@
|
||||
./drop.nix
|
||||
./fieldpoc.nix
|
||||
./gitea.nix
|
||||
./iot-data.nix
|
||||
./ip.nix
|
||||
./legal.nix
|
||||
./meow.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;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user