Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bannedbook committed Mar 11, 2020
1 parent 6665416 commit 6e24f94
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/v2.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
YzidX0yYmkUH/BHEOD4BetKXIgHqv1LI+VBbub1fhs8B/Y1cF+Twsz138gOHZRUDYiG0Vue4CFNmkHacyHtTy5E+dUzClBHhVyvVV8UXB/5yCeNaNsUXtaXzbEYI/Vph7YRuIDvzJOM5CM5xr7UTrlWhPkjwj3B5wOMYl/l/OwTM/9HiIr0Lb0EE1iu5I/pNGak0tiZetfWy19NhnxNfK09PoIGjo/HAxdzgrhZpBx5XuzUiX8oKA/aK2bRy49h+82S+eNypf19dKyKhHmLf1dsynAU/mhvfA4U2sy1t6CMjBfhcPKt8yejPFSnXsi39KEIs3zB0Zd9RIk/8nc4E6nnrVDA7p8gGu9qg71tvdeMdKJ7DheyfcrwDLT35yPmoTkMbUWY+4nROGUOwexpWm/S1D5f6Inm3EcaJUfQkQWRrUGJTxu3+qlOutKAN7A4Q6KwZQCI9Y0OAa81tqrVc43kggubPcCGZ3xCRQtRyaMWLSfbf7nGx91LgW4nljOCSxQfgyU5GPUXVNF4TTV/6TDoRH+hSM5nD6HFhG7nV8liduq5AiM/Cjo0uySK/2TdzcH3PX0Gm6g2skB3CsrZjMSzvnhOsreylEBImVzK5+uAWv226ezGffHoFPlZG7xSBBMs7MOB0NEwZdt24qbbtwo1UY4+vIBAKSKSAVKpCp5rpRTUffS8ZtkQlr9q7D4+zRtu1OWYCZBe/UajcIg5oFDPd31lEppbEX2hQ8RUOOKwweN1tMzU0X/4H+T/PicDU1NY+Tws/u8Ea8oN8Di6DugY+FXTzdJMNdUeT17SZpeZ65pCgJRYeMyjfoia3Jxp44WjipwW9iVWa0eABJevMd2kJZY1Pyx/sTLPAnJ2dlaxMI+fidltIhIgtqJSl3rK/V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W63ndhJsZ2jo88AVNNykkOwsx0RCGSQ96xtJV2OE17UeOkg==
50 changes: 50 additions & 0 deletions v2ss/server-cfg/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
worker_rlimit_nofile 655350;
events {
use epoll;
worker_connections 65536;
}

http {
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;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
access_log /var/log/nginx-access.log;
error_log /var/log/nginx-error.log;

gzip on;
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;

index index.html index.htm index.nginx-debian.html;

server_name _;

location / {
try_files $uri $uri/ =404;
}

location /v2free { # 与 V2Ray 配置中的 path 保持一致
proxy_redirect off;
proxy_pass http://127.0.0.1:10000; #假设WebSocket监听在环回地址的10000端口上
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;

proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
}

0 comments on commit 6e24f94

Please sign in to comment.