freifunk: shorten services.nginx.virtualHosts
This commit is contained in:
parent
6f16c99c38
commit
d2f65be2e4
|
@ -226,7 +226,15 @@ in {
|
||||||
"c3d2.ffdd" = {
|
"c3d2.ffdd" = {
|
||||||
default = true;
|
default = true;
|
||||||
root = <this-host/assets>;
|
root = <this-host/assets>;
|
||||||
locations = {
|
locations =
|
||||||
|
let
|
||||||
|
sysinfo-json = {
|
||||||
|
alias = "/tmp/sysinfo.json";
|
||||||
|
extraConfig = ''
|
||||||
|
add_header Content-Type "application/json;charset=UTF-8";
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in {
|
||||||
"/" = {
|
"/" = {
|
||||||
index = "index.html";
|
index = "index.html";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
@ -234,40 +242,18 @@ in {
|
||||||
add_header etag "\"${builtins.substring 11 32 (<this-host> + "/assets")}\"";
|
add_header etag "\"${builtins.substring 11 32 (<this-host> + "/assets")}\"";
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
"=/sysinfo-json.cgi" = {
|
"=/sysinfo-json.cgi" = sysinfo-json;
|
||||||
alias = "/tmp/sysinfo.json";
|
"=/sysinfo.json" = sysinfo-json;
|
||||||
extraConfig = ''
|
|
||||||
add_header Content-Type "application/json;charset=UTF-8";
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
"=/sysinfo.json" = {
|
|
||||||
alias = "/tmp/sysinfo.json";
|
|
||||||
extraConfig = ''
|
|
||||||
add_header Content-Type "application/json;charset=UTF-8";
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
"storage.hq.c3d2.ffdd".locations."/".proxyPass = "http://storage.hq.c3d2.de/";
|
||||||
"storage.hq.c3d2.ffdd" = {
|
"grafana.hq.c3d2.ffdd".locations."/" = {
|
||||||
locations = {
|
|
||||||
"/".proxyPass = "http://storage.hq.c3d2.de/";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"grafana.hq.c3d2.ffdd" = {
|
|
||||||
locations = {
|
|
||||||
"/" = {
|
|
||||||
proxyPass = "https://grafana.hq.c3d2.de/";
|
proxyPass = "https://grafana.hq.c3d2.de/";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_ssl_server_name on;
|
proxy_ssl_server_name on;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
"influxdb.hq.c3d2.ffdd".locations."/".proxyPass = "http://grafana.hq.c3d2.de:8086/";
|
||||||
};
|
|
||||||
"influxdb.hq.c3d2.ffdd" = {
|
|
||||||
locations = {
|
|
||||||
"/".proxyPass = "http://grafana.hq.c3d2.de:8086/";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user