Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- # Create a fake or rather link your site here just to disguise or hide v2ray server
- listen 0.0.0.0:80;
- server_name DOMAIN_HERE;
- return 301 https://DOMAIN_HERE$request_uri;
- }
- server {
- listen 0.0.0.0:443 ssl;
- server_name DOMAIN_HERE;
- ssl_certificate /usr/local/etc/v2ray/fullchain.pem;
- ssl_certificate_key /usr/local/etc/v2ray/key.pem;
- ssl_session_timeout 1d;
- #ssl_session_cache shared:MozSSL:10m;
- ssl_session_tickets off;
- #ssl_protocols TLSv1.2 TLSv1.3;
- ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
- ssl_prefer_server_ciphers off;
- # if you want to add or change WS path, change "location /" into "location /mypath"
- location /fractal {
- proxy_redirect off;
- proxy_pass http://127.0.0.1:10035;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- }
Add Comment
Please, Sign In to add comment