servers configs from code to docs

This commit is contained in:
m1k1o 2020-04-05 11:13:09 +02:00
parent 048094e850
commit 9284c23771

View File

@ -4,27 +4,31 @@ Server for n.eko, as of right now this will *only* work on Linux systems, only t
## Configuration ## Configuration
------ ------
``` ```
--debug // (bool) enable debug mode --debug // (bool) enable debug mode
--logs // (bool) save logs to file --logs // (bool) save logs to file
--config "" // (string) configuration file path --config "" // (string) configuration file path
--bind "127.0.0.1:8080" // (string) address/port/socket to serve neko --bind "127.0.0.1:8080" // (string) address/port/socket to serve neko
--cert "" // (string) path to the SSL cert used to secure the neko server --cert "" // (string) path to the SSL cert used to secure the neko server
--key "" // (string) path to the SSL key used to secure the neko server --key "" // (string) path to the SSL key used to secure the neko server
--static "./www" // (string) path to neko client files to serve --static "./www" // (string) path to neko client files to serve
--device "auto_null.monitor" // (string) audio device to capture --device "auto_null.monitor" // (string) audio device to capture
--display ":99.0" // (string) XDisplay to capture --display ":99.0" // (string) XDisplay to capture
--audio "" // (string) audio codec parameters to use for streaming (unused) --audio "" // (string) audio codec parameters to use for streaming (unused)
--video "" // (string) video codec parameters to use for streaming (unused) --video "" // (string) video codec parameters to use for streaming (unused)
--epr "59000-59100" // (string) limits the pool of ephemeral ports that ICE UDP connections can allocate from --screen "1280x720@30" // (string) default screen resolution and framerate
--vp8 // (bool) use VP8 video codec --epr "59000-59100" // (string) limits the pool of ephemeral ports that ICE UDP connections can allocate from
--vp9 // (bool) use VP9 video codec --vp8 // (bool) use VP8 video codec
--h264 // (bool) use H264 video codec --vp9 // (bool) use VP9 video codec
--opus // (bool) use Opus audio codec --h264 // (bool) use H264 video codec
--g722 // (bool) use G722 audio codec --opus // (bool) use Opus audio codec
--pcmu // (bool) use PCMU audio codec --g722 // (bool) use G722 audio codec
--pcma // (bool) use PCMA audio codec --pcmu // (bool) use PCMU audio codec
--password "neko" // (string) password for connecting to stream --pcma // (bool) use PCMA audio codec
--password_admin "admin" // (string) admin password for connecting to stream --nat1to1 // ([]string) sets a list of external IP addresses of 1:1 (D)NAT and a candidate type for which the external IP address is used
--icelite // (bool) configures whether or not the ice agent should be a lite agent
--iceserver "stun:stun.l.google.com:19302" // ([]string) describes a single STUN and TURN server that can be used by the ICEAgent to establish a connection with a peer
--password "neko" // (string) password for connecting to stream
--password_admin "admin" // (string) admin password for connecting to stream
``` ```
Config can be set via environment variables with the prefix `NEKO_` (I.E. NEKO_BIND="127.0.0.1:8080") Config can be set via environment variables with the prefix `NEKO_` (I.E. NEKO_BIND="127.0.0.1:8080")