.env file

.env file contains configuration parameters

SERVER_NAME=StServer
LICENSE_DIR=~/licenses/stserver/
SERVER_PORT=8080
STLAUNCHER_PORT=8040
SUPERVISOR_PORT=8065
MONGO_PORT=27016
MONGO_CONNECTION_STR=mongodb://localhost:27016/dbS2 
MQTT_BROKER_HOST=tcp://localhost
USING_REVERSE_PROXY=false
HOST_VIDEO_DIR=~/videos/
HOST_BACKUPS_DIR=~/backups/
HOST_DOCUMENTS_DIR=~/documents/
HOST_UPLOAD=~/Movies/
USE_WEBRTC_VIDEO=true
USE_LIVE_LOW_LATENCY=true
USE_LIVE_RTSP_HLS=true

If you're using the server without a reverse proxy, set SERVER_PORT=80
LICENSE_DIR entry specifies a path to the host folder where license files will be saved. HOST_VIDEO_DIR specifies a path to local folders that hold videos.
HOST_BACKUPS_DIR specifies a path to local folders that hold backups. HOST_UPLOAD specifies a path to a local folder that will be used for video content uploaded via FTP or any file copy method.

The following syntax rules apply to the .env file:

  • Each line in an .env file must be in the format VAR=VAL.
  • Lines beginning with '#' are treated as comments and are ignored.
  • Blank lines are also ignored.