Compare commits
2 Commits
51185940d0
...
39bd86991e
Author | SHA1 | Date | |
---|---|---|---|
39bd86991e | |||
ce3d8375d2 |
29
README.md
Normal file
29
README.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
### What is this?
|
||||||
|
This is a primitive application for streaming video files to Smart-TVs or any device with a browser, with a simple control of the list of these files.
|
||||||
|
|
||||||
|
### Configuration example
|
||||||
|
```
|
||||||
|
# config.yaml
|
||||||
|
# just title of the webpage
|
||||||
|
application_name: "My Marketing Videos"
|
||||||
|
|
||||||
|
# path where files will be stored
|
||||||
|
data_directory: "web"
|
||||||
|
|
||||||
|
# ip address to bindgo
|
||||||
|
listen_address: ":8000"
|
||||||
|
admin_user: "admin"
|
||||||
|
admin_password: "abcd@1234"
|
||||||
|
|
||||||
|
# increasing this number will cause active clients to reload the page. Useful for hot-fixing client code.
|
||||||
|
generation: 5
|
||||||
|
```
|
||||||
|
|
||||||
|
### -help option
|
||||||
|
```
|
||||||
|
videopage:
|
||||||
|
-config string
|
||||||
|
Path to the configuration file (default "config.yaml")
|
||||||
|
-rescan
|
||||||
|
Rescan the data direcory
|
||||||
|
```
|
2
admin.go
2
admin.go
@ -41,7 +41,7 @@ func (a *AdminApi) checkAuth(w http.ResponseWriter, r *http.Request) (success bo
|
|||||||
success = true
|
success = true
|
||||||
}
|
}
|
||||||
if !success {
|
if !success {
|
||||||
if !ok {
|
if ok {
|
||||||
time.Sleep(3 * time.Second)
|
time.Sleep(3 * time.Second)
|
||||||
}
|
}
|
||||||
w.Header().Set("WWW-Authenticate", fmt.Sprintf("Basic realm=\"%s\"", config.ApplicationName))
|
w.Header().Set("WWW-Authenticate", fmt.Sprintf("Basic realm=\"%s\"", config.ApplicationName))
|
||||||
|
Loading…
Reference in New Issue
Block a user