Disable attic
ci / test (push) Successful in 39s Details
ci / deploy (push) Has been cancelled Details

This commit is contained in:
Ciapa 2024-04-11 23:07:30 +02:00
parent 7a737ca637
commit 73b0e2043e
1 changed files with 36 additions and 36 deletions

View File

@ -1,39 +1,39 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
services.atticd = { # services.atticd = {
enable = true; # enable = true;
package = pkgs.attic-server; # package = pkgs.attic-server;
#
credentialsFile = "/run/secrets/services/attic/creds.env"; # credentialsFile = "/run/secrets/services/attic/creds.env";
#
settings = { # settings = {
listen = "0.0.0.0:28842"; # listen = "0.0.0.0:28842";
#
chunking = { # chunking = {
nar-size-threshold = 64 * 1024; # 64 KiB # nar-size-threshold = 64 * 1024; # 64 KiB
min-size = 16 * 1024; # 16 KiB # min-size = 16 * 1024; # 16 KiB
avg-size = 64 * 1024; # 64 KiB # avg-size = 64 * 1024; # 64 KiB
max-size = 256 * 1024; # 256 KiB # max-size = 256 * 1024; # 256 KiB
}; # };
}; # };
}; # };
#
services.nginx.virtualHosts."attic.lewd.wtf" = { # services.nginx.virtualHosts."attic.lewd.wtf" = {
enableACME = true; # enableACME = true;
forceSSL = true; # forceSSL = true;
locations."/" = { # locations."/" = {
proxyPass = "http://127.0.0.1:28842"; # proxyPass = "http://127.0.0.1:28842";
extraConfig = # extraConfig =
"proxy_set_header Host $host;" + # "proxy_set_header Host $host;" +
"proxy_set_header X-Real-IP $remote_addr;" + # "proxy_set_header X-Real-IP $remote_addr;" +
"proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;" + # "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;" +
"proxy_set_header X-Forwarded-Proto $scheme;" + # "proxy_set_header X-Forwarded-Proto $scheme;" +
"proxy_connect_timeout 1800;" + # "proxy_connect_timeout 1800;" +
"proxy_send_timeout 1800;" + # "proxy_send_timeout 1800;" +
"proxy_read_timeout 1800;" + # "proxy_read_timeout 1800;" +
"send_timeout 1800;" + # "send_timeout 1800;" +
"client_max_body_size 5G;" # "client_max_body_size 5G;"
; # ;
}; # };
}; # };
} }