config_server.json 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {
  2. "outbound": {
  3. "streamSettings": null,
  4. "tag": null,
  5. "protocol": "freedom",
  6. "mux": null,
  7. "settings": null
  8. },
  9. "log": {
  10. "access": "/var/log/v2ray/access.log",
  11. "loglevel": "error",
  12. "error": "/var/log/v2ray/error.log"
  13. },
  14. "inboundDetour": null,
  15. "inbound": {
  16. "streamSettings": {
  17. "network": "h2",
  18. "kcpSettings": null,
  19. "httpSettings": {
  20. "host": [
  21. "example.domain"
  22. ],
  23. "path": "/test"
  24. },
  25. "tcpSettings": null,
  26. "tlsSettings": {
  27. "certificates": [
  28. {
  29. "keyFile": "/path/to/example.domain.key",
  30. "certificateFile": "/path/to/example.domain/fullchain.cer"
  31. }
  32. ]
  33. },
  34. "security": "tls"
  35. },
  36. "listen": null,
  37. "protocol": "vmess",
  38. "port": 8443,
  39. "settings": {
  40. "ip": null,
  41. "udp": true,
  42. "clients": [
  43. {
  44. "alterId": 100,
  45. "security": "aes-128-gcm",
  46. "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e"
  47. }
  48. ],
  49. "auth": null
  50. }
  51. },
  52. "outboundDetour": [
  53. {
  54. "tag": "blocked",
  55. "protocol": "blackhole",
  56. "settings": null
  57. }
  58. ],
  59. "routing": {
  60. "strategy": "rules",
  61. "settings": {
  62. "rules": [
  63. {
  64. "ip": [
  65. "0.0.0.0/8",
  66. "10.0.0.0/8",
  67. "100.64.0.0/10",
  68. "127.0.0.0/8",
  69. "169.254.0.0/16",
  70. "172.16.0.0/12",
  71. "192.0.0.0/24",
  72. "192.0.2.0/24",
  73. "192.168.0.0/16",
  74. "198.18.0.0/15",
  75. "198.51.100.0/24",
  76. "203.0.113.0/24",
  77. "::1/128",
  78. "fc00::/7",
  79. "fe80::/10"
  80. ],
  81. "domain": null,
  82. "type": "field",
  83. "port": null,
  84. "outboundTag": "blocked"
  85. }
  86. ],
  87. "domainStrategy": null
  88. }
  89. },
  90. "dns": null
  91. }