按成员版本与设备名单限制群组密文投递

This commit is contained in:
xhgit committed 2026-11-14 08:35:39 +08:00
1 parent 43216c205c
commit 636419e948
12 files changed
+592 -7

No files matched your search

+5
View File
@@ -26,6 +26,11 @@ server {
proxy_pass http://api:8080;
proxy_set_header Host $http_host;
}
location ~ ^/api/v1/groups/[0-9a-fA-F-]+/(epochs|messages)$ {
client_max_body_size 3m;
proxy_pass http://api:8080;
proxy_set_header Host $http_host;
}
add_header Content-Security-Policy "default-src 'none'; script-src 'self' 'wasm-unsafe-eval'; style-src 'self'; connect-src 'self'; img-src 'self' blob:; media-src blob:; form-action 'self'; base-uri 'none'; frame-ancestors 'none'" always;
add_header Referrer-Policy no-referrer always;