[ agent ] 优化部分内容
This commit is contained in:
@@ -5,11 +5,9 @@ map $http_upgrade $connection_upgrade {
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
listen 22443 ssl http2;
|
||||
listen [::]:22443 ssl http2;
|
||||
|
||||
ssl_certificate /etc/nginx/conf.d/ssl_key/tailscale.107421.xyz.cert.pem;
|
||||
ssl_certificate_key /etc/nginx/conf.d/ssl_key/tailscale.107421.xyz.key.pem;
|
||||
@@ -20,12 +18,11 @@ server {
|
||||
|
||||
server_name tailscale.107421.xyz;
|
||||
|
||||
location /deperconfig {
|
||||
root /root/deper;
|
||||
location /derper {
|
||||
root /root/app-install/;
|
||||
autoindex on; # 开启目录浏览功能;
|
||||
}
|
||||
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8080;
|
||||
proxy_http_version 1.1;
|
||||
@@ -40,5 +37,4 @@ server {
|
||||
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user