1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Config: Support startting with environment variable only. v5.0.85

This commit is contained in:
winlin 2022-10-30 15:18:59 +08:00
parent ef0aefd546
commit 9f7a06bc9e
5 changed files with 35 additions and 60 deletions

View file

@ -266,11 +266,6 @@ class SrsConfig
friend class SrsConfDirective;
// user command
private:
// Whether srs is run in dolphin mode.
// @see https://github.com/ossrs/srs-dolphin
bool dolphin;
std::string dolphin_rtmp_port;
std::string dolphin_http_port;
// Whether show help and exit.
bool show_help;
// Whether test config file and exit.
@ -279,6 +274,8 @@ private:
bool show_version;
// Whether show SRS signature and exit.
bool show_signature;
// Whether only use environment variable, ignore config file.
bool env_only_;
// global env variables.
private:
// The user parameters, the argc and argv.
@ -301,10 +298,6 @@ private:
public:
SrsConfig();
virtual ~SrsConfig();
// dolphin
public:
// Whether srs is in dolphin mode.
virtual bool is_dolphin();
// Reload
public:
// For reload handler to register itself,