feat: remove default configuration to prevend accidental override.

we used to have file neko.yaml with default configuration, but if we would add neko.yml the default configuration would still be read. so instead, default configuartion was moved to the sever itself and no file is distributed with it by defautl.
This commit is contained in:
Miroslav Šedivý
2026-08-15 15:36:06 +02:00
parent 6f31613d3b
commit baf21c1d97
7 changed files with 34 additions and 32 deletions
+3 -3
View File
@@ -511,7 +511,7 @@
"enabled"
],
"type": "boolean",
"defaultValue": "true",
"defaultValue": "false",
"description": "whether cookies authentication should be enabled"
},
{
@@ -577,7 +577,7 @@
"heartbeat_interval"
],
"type": "int",
"defaultValue": "120",
"defaultValue": "10",
"description": "interval in seconds for sending heartbeat messages"
},
{
@@ -586,7 +586,7 @@
"implicit_hosting"
],
"type": "boolean",
"defaultValue": "true",
"defaultValue": "false",
"description": "allow implicit control switching"
},
{
+3 -3
View File
@@ -52,15 +52,15 @@
--session.api_token string API token for interacting with external services
--session.control_protection users can gain control only if at least one admin is in the room
--session.cookie.domain string domain of the cookie
--session.cookie.enabled whether cookies authentication should be enabled (default true)
--session.cookie.enabled whether cookies authentication should be enabled
--session.cookie.expiration duration expiration of the cookie (default 24h0m0s)
--session.cookie.http_only use http only cookies (default true)
--session.cookie.name string name of the cookie that holds token (default "NEKO_SESSION")
--session.cookie.path string path of the cookie
--session.cookie.secure use secure cookies (default true)
--session.file string if sessions should be stored in a file, otherwise they will be stored only in memory
--session.heartbeat_interval int interval in seconds for sending heartbeat messages (default 120)
--session.implicit_hosting allow implicit control switching (default true)
--session.heartbeat_interval int interval in seconds for sending heartbeat messages (default 10)
--session.implicit_hosting allow implicit control switching
--session.inactive_cursors show inactive cursors on the screen
--session.locked_controls whether controls should be locked for users initially
--session.locked_logins whether logins should be locked for users initially