imKobz

v2rayConfNginx

Feb 20th, 2021 (edited)
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. server {
  2. # Create a fake or rather link your site here just to disguise or hide v2ray server
  3. listen 0.0.0.0:80;
  4. server_name DOMAIN_HERE;
  5. return 301 https://DOMAIN_HERE$request_uri;
  6. }
  7. server {
  8. listen 0.0.0.0:443 ssl;
  9. server_name DOMAIN_HERE;
  10. ssl_certificate /usr/local/etc/v2ray/fullchain.pem;
  11. ssl_certificate_key /usr/local/etc/v2ray/key.pem;
  12. ssl_session_timeout 1d;
  13. #ssl_session_cache shared:MozSSL:10m;
  14. ssl_session_tickets off;
  15. #ssl_protocols TLSv1.2 TLSv1.3;
  16. 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;
  17. ssl_prefer_server_ciphers off;
  18. # if you want to add or change WS path, change "location /" into "location /mypath"
  19. location /fractal {
  20. proxy_redirect off;
  21. proxy_pass http://127.0.0.1:10035;
  22. proxy_http_version 1.1;
  23. proxy_set_header Upgrade $http_upgrade;
  24. proxy_set_header Connection "upgrade";
  25. proxy_set_header Host $host;
  26. proxy_set_header X-Real-IP $remote_addr;
  27. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  28. }
  29. }
Add Comment
Please, Sign In to add comment