settings.json default value

This commit is contained in:
Bertrand Moreau 2020-08-21 12:29:00 +02:00
parent 070a753081
commit 9e69193739
2 changed files with 10 additions and 8 deletions

View File

@ -55,7 +55,7 @@ func main() {
flag.StringVar(&sKey, "k", "", "Stream key, to protect your stream")
flag.StringVar(&sAdminPass, "a", "", "Set admin password. Overrides configuration in settings.json. This will not write the password to settings.json.")
flag.BoolVar(&pullEmotes, "e", false, "Pull emotes")
flag.StringVar(&confFile, "f", "", "URI of the conf file")
flag.StringVar(&confFile, "f", "./settings.json", "URI of the conf file")
flag.Parse()
format.RegisterAll()

View File

@ -30,7 +30,7 @@ online.
### Older Go Versions
You can install a newer version of Go alongside your OS's distribution by
following the guide here: [https://golang.org/doc/manage-install](https://golang.org/doc/manage-install)
following the guide here: [https://golang.org/doc/install#extra_versions](https://golang.org/doc/install#extra_versions)
Once you have that setup add an enviromnent variable named `GO_VERSION` and
set it to the version you installed (eg, `1.14.1`). The Makefile will now use
@ -38,13 +38,13 @@ the newer version.
### Compile and install
You have to :
- download ;
- choose your `TARGET` "android darwin dragonfly freebsd linux nacl netbsd openbsd plan9 solaris windows"
;
- choose you `ARCH` "386 amd64 amd64p32 arm arm64 ppc64 ppc64le mips mipsle mips64 mips64le mips64p32 mips64p32leppc s390 s390x sparc sparc64"
;
- and run ;
- download **git clone https://github.com/zorchenhimer/MovieNight**, go into the source directory **cd MovieNight**;
- choose your `TARGET` oneof "android darwin dragonfly freebsd linux nacl netbsd openbsd plan9 solaris windows";
- choose your `ARCH` oneof "386 amd64 amd64p32 arm arm64 ppc64 ppc64le mips mipsle mips64 mips64le mips64p32 mips64p32leppc s390 s390x sparc sparc64";
- build **make TARGET=windows ARCH=386**;
- and run **./MovieNight**;
Example :
```bash
$ git clone https://github.com/zorchenhimer/MovieNight
$ cd MovieNight
@ -130,6 +130,8 @@ Usage of .\MovieNight.exe:
host:port of the MovieNight (default ":8089")
-r string
host:port of the RTMP server (default ":1935")
-f string
the settings file you want to use (default "./settings.json")
```
## Configuration