remove unsed proxy.

This commit is contained in:
amass 2024-03-04 14:29:50 +00:00
parent 55b2ac03cc
commit 3ebf2eb4fc

View File

@ -50,10 +50,6 @@ http {
server 127.0.0.1:8085; server 127.0.0.1:8085;
} }
upstream wiznote {
server 127.0.0.1:8086;
}
upstream speed_test { upstream speed_test {
server 127.0.0.1:8087; server 127.0.0.1:8087;
} }
@ -64,30 +60,6 @@ http {
init_by_lua_file lua/settings.lua; init_by_lua_file lua/settings.lua;
server {
listen 443 ssl;
server_name wiz.amass.fun;
ssl_certificate cert/wiz.amass.fun.pem;
ssl_certificate_key cert/wiz.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://wiznote;
}
}
server { server {
listen 443 ssl; listen 443 ssl;
server_name frp.amass.fun; server_name frp.amass.fun;
@ -197,62 +169,6 @@ 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 http://frp_http_proxy;
}
}
server {
listen 443 ssl;
server_name jellyfin.amass.fun;
client_header_timeout 120s;
client_body_timeout 120s;
client_max_body_size 512m;
ssl_certificate cert/jellyfin.amass.fun.pem;
ssl_certificate_key cert/jellyfin.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_http_proxy;
}
}
server { server {
listen 443 ssl; listen 443 ssl;
server_name gitea.amass.fun; server_name gitea.amass.fun;
@ -411,12 +327,6 @@ http {
rewrite ^(.*)$ https://pve.amass.fun$1 permanent; rewrite ^(.*)$ https://pve.amass.fun$1 permanent;
} }
server {
listen 80;
server_name wiz.amass.fun;
rewrite ^(.*)$ https://wiz.amass.fun$1 permanent;
}
server { server {
listen 80; listen 80;
server_name gitea.amass.fun; server_name gitea.amass.fun;