Binary Cache should almost work now. Switched to older Kernel on Lilim.
This commit is contained in:
parent
6fe0cbebe2
commit
782cd1efae
4 changed files with 25 additions and 9 deletions
|
@ -42,13 +42,18 @@ mkIf (elem "nginx" config.machine.services) {
|
|||
}
|
||||
'';
|
||||
};
|
||||
"cache.${config.machine.domain}" = mkIf config.services.hydra.enable {
|
||||
"cache.${config.machine.domain}" = mkIf config.services.nix-serve.enable {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = "/var/cache/hydra";
|
||||
# extraConfig = ''
|
||||
# autoindex on;
|
||||
# '';
|
||||
extraConfig = ''
|
||||
location / {
|
||||
proxy_pass http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port};
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header REMOTE_ADDR $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
}
|
||||
'';
|
||||
};
|
||||
"mail.${config.machine.domain}" = mkIf config.mailserver.enable {
|
||||
enableACME = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue