update frp proxy.
This commit is contained in:
parent
3ebf2eb4fc
commit
be7fb5bb8a
|
@ -60,33 +60,6 @@ http {
|
|||
|
||||
init_by_lua_file lua/settings.lua;
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name frp.amass.fun;
|
||||
|
||||
client_header_timeout 120s;
|
||||
client_body_timeout 120s;
|
||||
|
||||
ssl_certificate cert/frp.amass.fun.pem;
|
||||
ssl_certificate_key cert/frp.amass.fun.key;
|
||||
ssl_session_timeout 5m; #缓存有效期
|
||||
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; #加密算法
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #安全链接可选的加密协议
|
||||
ssl_prefer_server_ciphers on; #使用服务器端的首选算法
|
||||
|
||||
location / {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header x-wiz-real-ip $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_pass http://frp_board;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name unraid.amass.fun;
|
||||
|
@ -319,6 +292,11 @@ http {
|
|||
location /twikoo {
|
||||
proxy_pass http://twikoo;
|
||||
}
|
||||
|
||||
location /frp/ {
|
||||
proxy_pass http://frp_board/;
|
||||
proxy_redirect /static/ /frp/static/;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
|
|
Loading…
Reference in New Issue
Block a user