Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.95 KB | None | 0 0
  1. # ---------------------------------
  2. # Сетевые настроки сервера
  3. # ---------------------------------
  4. # 1 - Адрес на котором прослушивается игровой сервер.
  5. # 0.0.0.0 - все доступные.
  6. # * - все доступные.
  7. # 2 - Порт игрового сервера
  8. GameServerHostName = *
  9. GameServerPort = 7774
  10.  
  11. # 1 - Порт логин сервера
  12. # 2 - Адрес логин сервера
  13. LoginPort = 9013
  14. LoginHost = localhost
  15.  
  16. # Внешнесетевой адрес сервера
  17. ExternalHostname = 186.2.166.65
  18.  
  19. # Внутрисетевой адрес сервера
  20. InternalHostname = 186.2.166.65
  21.  
  22. # ------------------------------------
  23. # Section: Subnets & Advanced Routing
  24. # ------------------------------------
  25. # Define optional networks and router IPs
  26. #
  27. # Format:
  28. #
  29. # Subnet = host, net/mask; host, net/mask, net/mask
  30. #
  31. # host - IP address (200.100.200.100) or
  32. # fully qualified domain name (example.org)
  33. #
  34. # net/mask - mask 192.168.0.0/16 or 192.168.0.0/255.255.0.0
  35. # would be 192.168.*.*
  36. #
  37. # External - external hostname, you defined in server.properties
  38. # Internal - internal hostname, you defined in server.properties
  39. #
  40. # Example:
  41. # Subnet = 169.254.1.100, 169.254.0.0/16, 111.222.333.0/255.255.255.0
  42. InternalNetworks =
  43. OptionalNetworks =
  44.  
  45. Subnet =
  46.  
  47. # Список хостов доступных для подключения к Telnet
  48. ListOfHosts = 127.0.0.1,localhost
  49.  
  50. # ----------------------------
  51. # Настройка базы данных
  52. # ----------------------------
  53. # Тип используемого пула
  54. PoolType = ru.catssoftware.sql.HikariDatabaseFactory
  55.  
  56. # MySQL драйвер
  57. Driver= com.mysql.jdbc.jdbc2.optional.MysqlDataSource
  58.  
  59. # Адрес базы данных
  60. URL = jdbc:mysql://localhost/l2mad_x100_craftpvp?useUnicode=true&characterEncoding=utf-8
  61.  
  62. # 1 - Логин базы данных
  63. # 2 - Пароль базы данных
  64. Login = root
  65. Password =
  66.  
  67. # Максимальное количество подключений к базе данных
  68. # Если у игроков лаги, увеличьте количество подключений
  69. # 400 коннектов хватит с головой до 2к онлайна.
  70. MaximumDbConnections = 400
  71.  
  72.  
  73.  
  74. ########################################################
  75.  
  76.  
  77. # Server socket backlog size
  78. # Default: 50
  79. # See http://www.linuxjournal.com/files/linuxjournal.com/linuxjournal/articles/023/2333/2333s2.html
  80. ServerBindSocketBacklog = 50
  81.  
  82. # IO execution mode
  83. # Default: POOLED(<cpu_core_count>)
  84. # - POOLED All IO operations are executed in a special thread IO execution pool.
  85. # - FIXED All IO operations execution is spread across fixed number of treads
  86. #
  87. IOExecutionMode = POOLED
  88.  
  89. # Num of IO execution threads.
  90. # Default: -1 - Num of CPU cores.
  91. #
  92. IOExecutionThreadNum = -1
  93.  
  94. # Income packet execution mode.
  95. # Default: DIRECT
  96. # - DIRECT - The worst. Income packets are directly executed after receiving and decrypting. As packets here implemented terribly, it not only increases latency, but decrease overall performance significant.
  97. # - OFFLOAD - Offloads execution to a IOExecutor(when IOExecutionMode set to POOLED) or a default ThreadPoolManager. Good option with POOLED IOExec mode. Increases throughput but also may increase context switch count.
  98. # - QUEUED - Same as OFFLOAD but packets are queued before execution. May decrease latency, may not.
  99. #
  100. PacketExecMode = QUEUED
  101.  
  102.  
  103. # Client socket options.
  104. # Default: SO_SNDBUF(4096);SO_RCVBUF(4096);TCP_NODELAY(true)
  105. # - SO_SNDBUF - the size of the socket's send buffer. On most systems this the size of a kernel buffer so be careful! See RFC1323.
  106. # - SO_RCVBUF - the size of the socket's receive buffer. On most systems this the size of a kernel buffer so be careful! See RFC1323.
  107. # - TCP_NODELAY - The Nagle algorithm. Enabling it increases throughput but also increases latency. See RFC1122.
  108. ClientSocketOptions = SO_SNDBUF(8192);SO_RCVBUF(8192);TCP_NODELAY(true)
  109.  
  110.  
  111. # Server socket options.
  112. # Default: SO_REUSEADDR(false);SO_RCVBUF(4096)
  113. # - SO_REUSEADDR - if true, prevents socket from usage until all opened sockets are really closed. See RFC793.
  114. ServerSocketOptions = SO_REUSEADDR(true);SO_RCVBUF(4096)
  115.  
  116. # Size of buffer for income packets in bytes.
  117. # Default: 32768
  118. #
  119. RecvBufferSize = 32768
  120.  
  121. # Type of buffer for income packets. DIRECT or HEAP
  122. # Default: DIRECT
  123. #
  124. RecvBufferType = DIRECT
  125.  
  126. # Size of buffer for outcome packets in bytes.
  127. # Default: 65536
  128. #
  129. SendBufferSize = 65536
  130.  
  131. # Type of buffer for outcome packets. DIRECT or HEAP
  132. # Default: DIRECT
  133. #
  134. SendBufferType = DIRECT
  135.  
  136. # Enables packet logging for teriann hosts. Must be disabled during normal operation.
  137. # Default: false
  138. #
  139. PktDbgEnabled = false
  140.  
  141. # Hosts for logging. Delimiters are ';' or ','
  142. # Example: 127.0.0.1;11.22.33.44;192.168.0.1
  143. #
  144. PktDbgHosts = 127.0.0.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement