Règlages backends HAProxy
This commit is contained in:
parent
ae4e125cce
commit
f27c8ef462
31
services.nix
31
services.nix
@ -16,14 +16,20 @@
|
|||||||
mode http
|
mode http
|
||||||
bind :80
|
bind :80
|
||||||
acl letsencrypt-acl path_beg /.well-known/acme-challenge/
|
acl letsencrypt-acl path_beg /.well-known/acme-challenge/
|
||||||
|
acl grafana-acl hdr(host) -i grafana.tars.nyanlout.re
|
||||||
|
acl emby-acl hdr(host) -i emby.tars.nyanlout.re
|
||||||
use_backend letsencrypt-backend if letsencrypt-acl
|
use_backend letsencrypt-backend if letsencrypt-acl
|
||||||
use_backend grafana-backend if !letsencrypt-acl
|
use_backend grafana-backend if grafana-acl
|
||||||
backend grafana-backend
|
use_backend emby-backend if emby-acl
|
||||||
mode http
|
|
||||||
server grafana 127.0.0.1:3000 check
|
|
||||||
backend letsencrypt-backend
|
backend letsencrypt-backend
|
||||||
mode http
|
mode http
|
||||||
server letsencrypt 127.0.0.1:54321
|
server letsencrypt 127.0.0.1:54321
|
||||||
|
backend grafana-backend
|
||||||
|
mode http
|
||||||
|
server grafana 127.0.0.1:3000 check
|
||||||
|
backend emby-backend
|
||||||
|
mode http
|
||||||
|
server emby 127.0.0.1:8096 check
|
||||||
'';
|
'';
|
||||||
|
|
||||||
services.nginx.enable = true;
|
services.nginx.enable = true;
|
||||||
@ -34,13 +40,14 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
security.acme.certs = {
|
# security.acme.certs = {
|
||||||
"tars.nyanlout.re" = {
|
# "grafana.tars.nyanlout.re" = {
|
||||||
user = "nginx";
|
# user = "nginx";
|
||||||
webroot = "/var/www/challenges";
|
# webroot = "/var/www/challenges";
|
||||||
email = "paul@nyanlout.re";
|
# email = "paul@nyanlout.re";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
# security.acme.directory = "/var/lib/acme";
|
||||||
|
|
||||||
services.influxdb.enable = true;
|
services.influxdb.enable = true;
|
||||||
services.influxdb.dataDir = "/var/db/influxdb";
|
services.influxdb.dataDir = "/var/db/influxdb";
|
||||||
@ -63,7 +70,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.grafana.enable = true;
|
services.grafana.enable = true;
|
||||||
services.grafana.addr = "0.0.0.0";
|
services.grafana.addr = "127.0.0.1";
|
||||||
services.grafana.dataDir = "/var/lib/grafana";
|
services.grafana.dataDir = "/var/lib/grafana";
|
||||||
|
|
||||||
services.emby.enable = true;
|
services.emby.enable = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user