sdrweb: fix eval and format

This commit is contained in:
Sandro - 2023-09-18 18:48:40 +02:00
parent 97915b9c61
commit e560b98a9b
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 27 additions and 28 deletions

View File

@ -44,36 +44,35 @@
'';
};
nginx =
{
enable = true;
virtualHosts."sdr.hq.c3d2.de" = {
default = true;
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:8073";
proxyWebsockets = true;
};
nginx = {
enable = true;
virtualHosts."sdr.hq.c3d2.de" = {
default = true;
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:8073";
proxyWebsockets = true;
};
virtualHosts."adsb.hq.c3d2.de" = {
forceSSL = true;
enableACME = true;
root = pkgs.runCommand "adsb-map" { } ''
mkdir $out
cp ${./adsb.html} $out/index.html
cp ${./jquery-3.7.0.min.js} $out/jquery-3.7.0.min.js
cp ${./airplane.svg} $out/airplane.svg
'';
extraConfig = ''
index index.html;
charset utf-8;
'';
locations."/data.json".proxyPass = "http://${hostRegistry.radiobert.ip4}:8080/data.json";
};
}
};
virtualHosts."adsb.hq.c3d2.de" = {
forceSSL = true;
enableACME = true;
root = pkgs.runCommand "adsb-map" { } ''
mkdir $out
cp ${./adsb.html} $out/index.html
cp ${./jquery-3.7.0.min.js} $out/jquery-3.7.0.min.js
cp ${./airplane.svg} $out/airplane.svg
'';
extraConfig = ''
index index.html;
charset utf-8;
'';
locations."/data.json".proxyPass = "http://${hostRegistry.radiobert.ip4}:8080/data.json";
};
};
openwebrx.enable = true;
openwebrx.enable = true;
};
services.heliwatch = {