Add some proxy config.
This commit is contained in:
parent
55097bcf75
commit
e852453401
@ -30,6 +30,10 @@ http {
|
|||||||
gzip on;
|
gzip on;
|
||||||
gzip_types application/octet-stream text/markdown text/plain application/json application/x-javascript text/css application/xml text/javascript application/javascript application/x-httpd-php image/jpeg image/gif image/png;
|
gzip_types application/octet-stream text/markdown text/plain application/json application/x-javascript text/css application/xml text/javascript application/javascript application/x-httpd-php image/jpeg image/gif image/png;
|
||||||
|
|
||||||
|
upstream frp_board {
|
||||||
|
server 127.0.0.1:7500;
|
||||||
|
}
|
||||||
|
|
||||||
upstream twikoo {
|
upstream twikoo {
|
||||||
server 127.0.0.1:8080;
|
server 127.0.0.1:8080;
|
||||||
}
|
}
|
||||||
@ -54,6 +58,10 @@ http {
|
|||||||
server 127.0.0.1:8085;
|
server 127.0.0.1:8085;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
upstream frp_webdav {
|
||||||
|
server 127.0.0.1:8086;
|
||||||
|
}
|
||||||
|
|
||||||
init_by_lua_file lua/settings.lua;
|
init_by_lua_file lua/settings.lua;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
@ -80,10 +88,41 @@ http {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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 {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name pve.amass.fun;
|
server_name pve.amass.fun;
|
||||||
|
|
||||||
|
client_header_timeout 120s;
|
||||||
|
client_body_timeout 120s;
|
||||||
|
client_max_body_size 512m;
|
||||||
|
|
||||||
ssl_certificate cert/pve.amass.fun.pem;
|
ssl_certificate cert/pve.amass.fun.pem;
|
||||||
ssl_certificate_key cert/pve.amass.fun.key;
|
ssl_certificate_key cert/pve.amass.fun.key;
|
||||||
ssl_session_timeout 5m; #缓存有效期
|
ssl_session_timeout 5m; #缓存有效期
|
||||||
@ -104,6 +143,34 @@ http {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name webdav.amass.fun;
|
||||||
|
|
||||||
|
client_header_timeout 120s;
|
||||||
|
client_body_timeout 120s;
|
||||||
|
client_max_body_size 512m;
|
||||||
|
|
||||||
|
ssl_certificate cert/webdav.amass.fun.pem;
|
||||||
|
ssl_certificate_key cert/webdav.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 https://frp_webdav;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name gitea.amass.fun;
|
server_name gitea.amass.fun;
|
||||||
|
Loading…
Reference in New Issue
Block a user