@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user