mirror of
https://codeberg.org/muon/home.git
synced 2026-03-08 03:25:16 +00:00
Merge branch 'main' of codeberg.org:muon/home
This commit is contained in:
commit
4744f39ad7
2 changed files with 10 additions and 1 deletions
|
|
@ -40,6 +40,7 @@ in with lib; {
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
openRPCPort = true;
|
openRPCPort = true;
|
||||||
port = arr.torrent.port;
|
port = arr.torrent.port;
|
||||||
|
package = pkgs.transmission_4;
|
||||||
settings = {
|
settings = {
|
||||||
download-dir = "/storage1/download";
|
download-dir = "/storage1/download";
|
||||||
rpc-port = arr.torrent.port;
|
rpc-port = arr.torrent.port;
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ in
|
||||||
add_header X-XSS-Protection "1; mode=block" always;
|
add_header X-XSS-Protection "1; mode=block" always;
|
||||||
add_header X-Content-Type-Options "nosniff" always;
|
add_header X-Content-Type-Options "nosniff" always;
|
||||||
add_header Referrer-Policy "no-referrer-when-downgrade" 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 Permissions-Policy "interest-cohort=()" always;
|
||||||
# add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
|
# add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
|
||||||
'';
|
'';
|
||||||
|
|
@ -99,6 +99,14 @@ in
|
||||||
"/" = {
|
"/" = {
|
||||||
proxyPass = "http://${cfg.ip}:${toString port}/";
|
proxyPass = "http://${cfg.ip}:${toString port}/";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
|
extraConfig =
|
||||||
|
# sh
|
||||||
|
''
|
||||||
|
client_max_body_size 50000M;
|
||||||
|
proxy_read_timeout 600s;
|
||||||
|
proxy_send_timeout 600s;
|
||||||
|
send_timeout 600s;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue