Browse Source

feat: remove deprecated configuration files for Trojan-TCP-XTLS

kastov 1 week ago
parent
commit
72a54c9a79
3 changed files with 0 additions and 164 deletions
  1. 0 48
      Trojan-TCP-XTLS/config_client.jsonc
  2. 0 53
      Trojan-TCP-XTLS/config_server.jsonc
  3. 0 63
      Trojan-TCP-XTLS/nginx.conf

+ 0 - 48
Trojan-TCP-XTLS/config_client.jsonc

@@ -1,48 +0,0 @@
-{
-    "log": {
-        "loglevel": "debug"
-    },
-    "inbounds": [
-        {
-            "port": 1080,
-            "listen": "127.0.0.1",
-            "protocol": "socks",
-            "settings": {
-                "udp": true
-            }
-        },
-        {
-            "port": 1081,
-            "protocol": "http",
-            "sniffing": {
-              "enabled": true,
-              "destOverride": ["http", "tls"]
-            },
-            "settings": {
-              "auth": "noauth"
-            }
-        }
-    ],
-    "outbounds": [
-        {
-            "protocol": "trojan",
-            "settings": {
-                "servers": [
-                    {
-                        "address": "example.com",  // your domain name or server IP
-                        "flow": "xtls-rprx-vision",  // Linux or android can be changed to "xtls-rprx-splice"
-                        "port": 443,
-                        "password": "your_password"  // your password
-                    }
-                ]
-            },
-            "streamSettings": {
-                "network": "tcp",
-                "security": "tls",
-                "tlsSettings": {
-                    "serverName": "example.com"  // your domain name
-                }
-            }
-        }
-    ]
-}

+ 0 - 53
Trojan-TCP-XTLS/config_server.jsonc

@@ -1,53 +0,0 @@
-{
-    "log": {
-        "loglevel": "debug"
-    },
-    "inbounds": [
-        {
-            "port": 443,
-            "protocol": "trojan",
-            "settings": {
-                "clients": [
-                    {
-                        "password":"your_password",  // password
-                        "flow": "xtls-rprx-vison"
-                    }
-                ],
-                "fallbacks": [
-                    {
-                        "dest": "/dev/shm/default.sock",
-                        "xver": 1
-                    },
-                    {
-                        "alpn": "h2",
-                        "dest": "/dev/shm/h2c.sock",
-                        "xver": 1
-                    }
-                ]
-            },
-            "streamSettings": {
-                "network": "tcp",
-                "security": "tls",
-                "tlsSettings": {
-                    "alpn": [
-                        "http/1.1",
-                        "h2"
-                    ],
-                    "certificates": [
-                        {
-                            "certificateFile": "/path/to/cert",  // Certificate file absolute directory
-                            "keyFile": "/path/to/key",  // Key file absolute directory
-                            "ocspStapling": 3600  // Verification cycle 3600 Second
-                        }
-                    ],
-                    "minVersion": "1.2"  // If it is an ecc certificate, use TLSv1.2 at least. If you don't know the certificate type or it is not an ecc certificate, delete this line
-                }
-            }
-        }
-    ],
-    "outbounds": [
-        {
-            "protocol": "freedom"
-        }
-    ]
-}

+ 0 - 63
Trojan-TCP-XTLS/nginx.conf

@@ -1,63 +0,0 @@
-user nginx;
-worker_processes auto;
-error_log /var/log/nginx/error.log;
-pid /run/nginx.pid;
-
-include /usr/share/nginx/modules/*.conf;
-
-events {
-    worker_connections 1024;
-}
-
-http {
-    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
-                      '$status $body_bytes_sent "$http_referer" '
-                      '"$http_user_agent" "$http_x_forwarded_for" '
-                      '$proxy_protocol_addr:$proxy_protocol_port';
-
-    access_log  /var/log/nginx/access.log  main;
-
-    sendfile            on;
-    tcp_nopush          on;
-    tcp_nodelay         on;
-    keepalive_timeout   65;
-    types_hash_max_size 2048;
-
-    include             /etc/nginx/mime.types;
-    default_type        application/octet-stream;
-
-    include /etc/nginx/conf.d/*.conf;
-
-    server {
-        #listen       80 default_server;
-        #listen       [::]:80 default_server;
-        listen       [::]:80 default ipv6only=off;
-        return       301 https://$http_host$request_uri;
-    }
-
-    server {
-        listen       unix:/dev/shm/default.sock proxy_protocol;
-        listen       unix:/dev/shm/h2c.sock http2 proxy_protocol;
-
-        # 把example.com换成你的域名
-        server_name  example.com;
-
-        root         /usr/share/nginx/html;
-
-        set_real_ip_from 127.0.0.1;
-
-
-        include /etc/nginx/default.d/*.conf;
-
-        # 开启 HSTS ,混 sslab 的 A+
-        add_header Strict-Transport-Security "max-age=63072000" always;
-
-        error_page 404 /404.html;
-            location = /40x.html {
-        }
-
-        error_page 500 502 503 504 /50x.html;
-            location = /50x.html {
-        }
-    }
-}