update.
Some checks failed
Deploy / Build (push) Failing after 31s

This commit is contained in:
luocai
2025-06-10 13:55:25 +08:00
parent f909dc4581
commit 73bd900000
2 changed files with 11 additions and 31 deletions

View File

@ -10,6 +10,7 @@ ssl_prefer_server_ciphers off;
location / {
root amass_blog;
index index.html index.htm;
try_files $uri $uri/index.html =404; # 避免 /a/b 重定向 /a/b/
add_header X-Content-Type-Options "nosniff";
}
@ -93,3 +94,13 @@ location /frp/ {
proxy_pass http://frp_board/;
proxy_redirect /static/ /frp/static/;
}
location /searxng {
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://searxng;
}