From 51e4a11bdb8487d2651e3ced7c5a68943c441509 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sat, 1 Jun 2024 11:41:28 +0200 Subject: [PATCH] Resource: add new LiveAPI configuration file Executed on server launch. --- r5dev/resource/cfg/liveapi.cfg | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 r5dev/resource/cfg/liveapi.cfg diff --git a/r5dev/resource/cfg/liveapi.cfg b/r5dev/resource/cfg/liveapi.cfg new file mode 100644 index 00000000..f1a76873 --- /dev/null +++ b/r5dev/resource/cfg/liveapi.cfg @@ -0,0 +1,18 @@ +///////////////// LiveAPI system configuration file. +// This file is executed automatically on startup. + +liveapi_enabled "0" // Enable LiveAPI functionality. +liveapi_session_name "" // LiveAPI session name to identify this connection. + +liveapi_websocket_enabled "0" // Whether to use WebSocket to transmit LiveAPI events. +liveapi_servers "" // Comma separated list of addresses to connect to; format: ws://domain.suffix:port. +liveapi_retry_count "5" // Amount of times to retry connecting before marking the connection as unavailable. +liveapi_retry_time "30" // Amount of time between each retry. + +liveapi_timeout "300" // WebSocket connection timeout in seconds. +liveapi_keepalive "30" // Interval of time to send Pong to any connected server. +liveapi_lax_ssl "1" // Skip SSL certificate validation for all WSS connections (allows the use of self-signed certificates). + +liveapi_print_enabled "0" // Whether to enable the printing of all events to a LiveAPI JSON file. +liveapi_print_pretty "0" // Whether to print events in a formatted manner to the LiveAPI JSON file. +liveapi_print_primitive "0" // Whether to print primitive event fields to the LiveAPI JSON file.