1
0
Fork 0

Improve container stability

This commit is contained in:
Malte Brandy 2019-08-15 00:08:33 +02:00
parent 2466da6ec4
commit f107583a19
3 changed files with 7 additions and 14 deletions

View file

@ -110,6 +110,10 @@ let
};
in {
systemd.services."container@".serviceConfig = {
RestartSec = 10;
TimeoutSec = 360;
};
services = {
nginx = {
enable = true;
@ -118,12 +122,7 @@ in {
forceSSL = true;
locations."/" = {
proxyPass = "http://cloud";
extraConfig = ''
proxy_set_header Host $host;
'';
# proxy_set_header X-Forwarded-Host :$server_port;
# proxy_set_header X-Forwarded-Server $host;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
extraConfig = "proxy_set_header Host $host;";
};
};
virtualHosts."cloud.mathechor.de" = {
@ -131,14 +130,7 @@ in {
forceSSL = true;
locations."/" = {
proxyPass = "http://chor-cloud";
extraConfig = ''
proxy_set_header Host $host;
'';
# extraConfig = ''
# proxy_set_header X-Forwarded-Host :$server_port;
# proxy_set_header X-Forwarded-Server $host;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# '';
extraConfig = "proxy_set_header Host $host;";
};
};
};

Binary file not shown.

View file

@ -25,6 +25,7 @@ in {
blackbox = {
enable = true;
configFile = ./blackbox_rules.yml;
extraFlags = [ "--log.level=debug" ];
};
};
alertmanager = {