Advertisement
Guest User

computercraft-server.toml

a guest
Aug 17th, 2024
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.31 KB | None | 0 0
  1. #The disk space limit for computers and turtles, in bytes.
  2. computer_space_limit = 1000000
  3. #The disk space limit for floppy disks, in bytes.
  4. floppy_space_limit = 125000
  5. #The file upload size limit, in bytes. Must be in range of 1 KiB and 16 MiB.
  6. #Keep in mind that uploads are processed in a single tick - large files or
  7. #poor network performance can stall the networking thread. And mind the disk space!
  8. #Range: 1024 ~ 16777216
  9. upload_max_size = 524288
  10. #Set how many files a computer can have open at the same time. Set to 0 for unlimited.
  11. #Range: > 0
  12. maximum_open_files = 128
  13. #A comma separated list of default system settings to set on new computers.
  14. #Example: "shell.autocomplete=false,lua.autocomplete=false,edit.autocomplete=false"
  15. #will disable all autocompletion.
  16. default_computer_settings = ""
  17. #Log exceptions thrown by peripherals and other Lua objects. This makes it easier
  18. #for mod authors to debug problems, but may result in log spam should people use
  19. #buggy methods.
  20. log_computer_errors = true
  21. #Require players to be in creative mode and be opped in order to interact with
  22. #command computers. This is the default behaviour for vanilla's Command blocks.
  23. command_require_creative = true
  24. #A list of generic methods or method sources to disable. Generic methods are
  25. #methods added to a block/block entity when there is no explicit peripheral
  26. #provider. This includes inventory methods (i.e. inventory.getItemDetail,
  27. #inventory.pushItems), and (if on Forge), the fluid_storage and energy_storage
  28. #methods.
  29. #Methods in this list can either be a whole group of methods (computercraft:inventory)
  30. #or a single method (computercraft:inventory#pushItems).
  31. #
  32. disabled_generic_methods = []
  33. http.enabled = true
  34. #Controls execution behaviour of computers. This is largely intended for
  35. #fine-tuning servers, and generally shouldn't need to be touched.
  36. [execution]
  37. #Set the number of threads computers can run on. A higher number means more
  38. #computers can run at once, but may induce lag. Please note that some mods may
  39. #not work with a thread count higher than 1. Use with caution.
  40. #Range: > 1
  41. computer_threads = 1
  42. #The maximum time that can be spent executing tasks in a single tick, in
  43. #milliseconds.
  44. #Note, we will quite possibly go over this limit, as there's no way to tell how
  45. #long a will take - this aims to be the upper bound of the average time.
  46. #Range: > 1
  47. max_main_global_time = 10
  48. #The ideal maximum time a computer can execute for in a tick, in milliseconds.
  49. #Note, we will quite possibly go over this limit, as there's no way to tell how
  50. #long a will take - this aims to be the upper bound of the average time.
  51. #Range: > 1
  52. max_main_computer_time = 5
  53.  
  54. #Controls the HTTP API
  55. [http]
  56. #Enable the "http" API on Computers. Disabling this also disables the "pastebin" and
  57. #"wget" programs, that many users rely on. It's recommended to leave this on and use
  58. #the "rules" config option to impose more fine-grained control.
  59. enabled = true
  60. #Enable use of http websockets. This requires the "http_enable" option to also be true.
  61. websocket_enabled = true
  62. #The number of http requests a computer can make at one time. Additional requests
  63. #will be queued, and sent when the running requests have finished. Set to 0 for
  64. #unlimited.
  65. #Range: > 0
  66. max_requests = 16
  67. #The number of websockets a computer can have open at one time.
  68. #Range: > 1
  69. max_websockets = 4
  70.  
  71. #Limits bandwidth used by computers.
  72. [http.bandwidth]
  73. #The number of bytes which can be downloaded in a second. This is shared across all computers. (bytes/s).
  74. #Range: > 1
  75. global_download = 33554432
  76. #The number of bytes which can be uploaded in a second. This is shared across all computers. (bytes/s).
  77. #Range: > 1
  78. global_upload = 33554432
  79.  
  80. #Tunnels HTTP and websocket requests through a proxy server. Only affects HTTP
  81. #rules with "use_proxy" set to true (off by default).
  82. #If authentication is required for the proxy, create a "computercraft-proxy.pw"
  83. #file in the same directory as "computercraft-server.toml", containing the
  84. #username and password separated by a colon, e.g. "myuser:mypassword". For
  85. #SOCKS4 proxies only the username is required.
  86. [http.proxy]
  87. #The type of proxy to use.
  88. #Allowed Values: HTTP, HTTPS, SOCKS4, SOCKS5
  89. type = "HTTP"
  90. #The hostname or IP address of the proxy server.
  91. host = ""
  92. #The port of the proxy server.
  93. #Range: 1 ~ 65536
  94. port = 8080
  95.  
  96. #A list of rules which control behaviour of the "http" API for specific domains or
  97. #IPs. Each rule matches against a hostname and an optional port, and then sets several
  98. #properties for the request. Rules are evaluated in order, meaning earlier rules override
  99. #later ones.
  100. #
  101. #Valid properties:
  102. # - "host" (required): The domain or IP address this rule matches. This may be a domain name
  103. # ("pastebin.com"), wildcard ("*.pastebin.com") or CIDR notation ("127.0.0.0/8").
  104. # - "port" (optional): Only match requests for a specific port, such as 80 or 443.
  105. #
  106. # - "action" (optional): Whether to allow or deny this request.
  107. # - "max_download" (optional): The maximum size (in bytes) that a computer can download in this
  108. # request.
  109. # - "max_upload" (optional): The maximum size (in bytes) that a computer can upload in a this request.
  110. # - "max_websocket_message" (optional): The maximum size (in bytes) that a computer can send or
  111. # receive in one websocket packet.
  112. # - "use_proxy" (optional): Enable use of the HTTP/SOCKS proxy if it is configured.
  113. [[http.rules]]
  114. host = "$private"
  115. action = "deny"
  116. host = "pastebin.com"
  117. action = "allow"
  118.  
  119. [[http.rules]]
  120. #The maximum size (in bytes) that a computer can send or receive in one websocket packet.
  121. max_websocket_message = 131072
  122. host = "*"
  123. #The maximum size (in bytes) that a computer can upload in a single request. This
  124. #includes headers and POST text.
  125. max_upload = 4194304
  126. action = "allow"
  127. #Enable use of the HTTP/SOCKS proxy if it is configured.
  128. use_proxy = false
  129. #The maximum size (in bytes) that a computer can download in a single request.
  130. #Note that responses may receive more data than allowed, but this data will not
  131. #be returned to the client.
  132. max_download = 16777216
  133.  
  134. #Various options relating to peripherals.
  135. [peripheral]
  136. #Enable Command Block peripheral support
  137. command_block_enabled = false
  138. #The range of Wireless Modems at low altitude in clear weather, in meters.
  139. #Range: 0 ~ 100000
  140. modem_range = 64
  141. #The range of Wireless Modems at maximum altitude in clear weather, in meters.
  142. #Range: 0 ~ 100000
  143. modem_high_altitude_range = 384
  144. #The range of Wireless Modems at low altitude in stormy weather, in meters.
  145. #Range: 0 ~ 100000
  146. modem_range_during_storm = 64
  147. #The range of Wireless Modems at maximum altitude in stormy weather, in meters.
  148. #Range: 0 ~ 100000
  149. modem_high_altitude_range_during_storm = 384
  150. #Maximum amount of notes a speaker can play at once.
  151. #Range: > 1
  152. max_notes_per_tick = 8
  153. #The limit to how much monitor data can be sent *per tick*. Note:
  154. # - Bandwidth is measured before compression, so the data sent to the client is
  155. # smaller.s
  156. # - This ignores the number of players a packet is sent to. Updating a monitor for
  157. # one player consumes the same bandwidth limit as sending to 20.
  158. # - A full sized monitor sends ~25kb of data. So the default (1MB) allows for ~40
  159. # monitors to be updated in a single tick.
  160. #Set to 0 to disable.
  161. #Range: > 0
  162. monitor_bandwidth = 1000000
  163.  
  164. #Various options relating to turtles.
  165. [turtle]
  166. #Set whether Turtles require fuel to move.
  167. need_fuel = false
  168. #The fuel limit for Turtles.
  169. #Range: > 0
  170. normal_fuel_limit = 20000
  171. #The fuel limit for Advanced Turtles.
  172. #Range: > 0
  173. advanced_fuel_limit = 100000
  174. #If set to true, Turtles will push entities out of the way instead of stopping if
  175. #there is space to do so.
  176. can_push = true
  177.  
  178. #Configure the size of various computer's terminals.
  179. #Larger terminals require more bandwidth, so use with care.
  180. [term_sizes]
  181.  
  182. #Terminal size of computers.
  183. [term_sizes.computer]
  184. #Range: 1 ~ 255
  185. width = 51
  186. #Range: 1 ~ 255
  187. height = 19
  188.  
  189. #Terminal size of pocket computers.
  190. [term_sizes.pocket_computer]
  191. #Range: 1 ~ 255
  192. width = 26
  193. #Range: 1 ~ 255
  194. height = 20
  195.  
  196. #Maximum size of monitors (in blocks).
  197. [term_sizes.monitor]
  198. #Range: 1 ~ 32
  199. width = 8
  200. #Range: 1 ~ 32
  201. height = 6
  202.  
  203.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement