Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen [::]:80;
- listen 443 ssl http2 reuseport;
- listen [::]:443 http2 reuseport;
- server_name xxx;
- ssl_certificate /etc/xray/xray.crt;
- ssl_certificate_key /etc/xray/xray.key;
- ssl_ciphers EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+ECDSA+AES128:EECDH+aRSA+AES128:RSA+AES128:EECDH+ECDSA+AES256:EECDH+aRSA+AES256:RSA+AES256:EECDH+ECDSA+3DES:EECDH+aRSA+3DES:RSA+3DES:!MD5;
- ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
- root /etc/kobe/public_html;
- # XRAY SERVER (c) kobe 2023
- # Vless
- location /vless {
- if ($http_upgrade != "Upgrade"){
- rewrite /(.*) /vless break;
- }
- proxy_redirect off;
- proxy_pass http://127.0.0.1:10001;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "Upgrade";
- proxy_set_header Host $host;
- ### set real ip in access.log;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- # Vmess
- location / {
- if ($http_upgrade != "Upgrade") {
- rewrite /(.*) /vmess break;
- }
- proxy_redirect off;
- proxy_pass http://127.0.0.1:10002;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "Upgrade";
- proxy_set_header Host $host;
- ### set real ip in access.log;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- # Vless grpc
- location ^~ /vlessws-grpc {
- proxy_redirect off;
- grpc_set_header X-Real-IP $remote_addr;
- grpc_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- grpc_set_header Host $http_host;
- grpc_pass grpc://127.0.0.1:10005;
- }
- # Vmess grpc
- location ^~ /vmess-grpc {
- proxy_redirect off;
- grpc_set_header X-Real-IP $remote_addr;
- grpc_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- grpc_set_header Host $http_host;
- grpc_pass grpc://127.0.0.1:10006;
- }
- }
- server {
- listen 81;
- root /etc/kobe/public_html;
- index index.html index.htm;
- location / {
- try_files $uri $uri/ /index.html;
- }
- location ~ \.json$ {
- default_type application/json;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement