mirror of
https://codeberg.org/muon/home.git
synced 2026-03-08 03:25:16 +00:00
Update nginx
This commit is contained in:
parent
3e2e11bb33
commit
1aec25fdaa
1 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue