Merge branch 'main' of codeberg.org:muon/home

This commit is contained in:
muon 2026-01-01 17:01:41 +00:00
commit 4744f39ad7
2 changed files with 10 additions and 1 deletions

View file

@ -40,6 +40,7 @@ in with lib; {
openFirewall = true;
openRPCPort = true;
port = arr.torrent.port;
package = pkgs.transmission_4;
settings = {
download-dir = "/storage1/download";
rpc-port = arr.torrent.port;

View file

@ -82,7 +82,7 @@ in
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "no-referrer-when-downgrade" always;
add_header Content-Security-Policy "default-src 'self' http: https: ws: wss: data: blob: 'unsafe-inline'; frame-ancestors 'self';" always;
add_header Content-Security-Policy "default-src 'self' http: https: ws: wss: data: blob: 'unsafe-inline'; frame-ancestors 'self'; script-src 'self'; object-src 'none'; base-uri 'none';"; always;
add_header Permissions-Policy "interest-cohort=()" always;
# add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
'';
@ -99,6 +99,14 @@ in
"/" = {
proxyPass = "http://${cfg.ip}:${toString port}/";
proxyWebsockets = true;
extraConfig =
# sh
''
client_max_body_size 50000M;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
send_timeout 600s;
'';
};
};
in