mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-01-30 22:02:59 +00:00
Underscores are ignored by YAML, uses dashes
This commit is contained in:
parent
de2ac30292
commit
a2efa1126f
@ -119,10 +119,10 @@ web:
|
|||||||
# e.g., on http://stream.example.com:8080/, if the domain stream.example.com is mapped to "example",
|
# e.g., on http://stream.example.com:8080/, if the domain stream.example.com is mapped to "example",
|
||||||
# the stream served will be "example".
|
# the stream served will be "example".
|
||||||
# This implies that your domain will be able to serve only one stream.
|
# This implies that your domain will be able to serve only one stream.
|
||||||
# Dots in the domain name must be remplaced by underscores to avoid yaml issues.
|
# Dots in the domain name must be remplaced by dashes to avoid yaml issues.
|
||||||
#
|
#
|
||||||
#mapDomainToStream:
|
#mapDomainToStream:
|
||||||
# stream_example_com: example
|
# stream-example-com: example
|
||||||
|
|
||||||
# Stream player poster
|
# Stream player poster
|
||||||
# Shown when stream is loading or inactive.
|
# Shown when stream is loading or inactive.
|
||||||
|
@ -32,8 +32,8 @@ func viewerPostHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
host = realHost
|
host = realHost
|
||||||
host = strings.Replace(host, ".", "_", -1)
|
|
||||||
}
|
}
|
||||||
|
host = strings.Replace(host, ".", "-", -1)
|
||||||
if streamID, ok := cfg.MapDomainToStream[host]; ok {
|
if streamID, ok := cfg.MapDomainToStream[host]; ok {
|
||||||
path = streamID
|
path = streamID
|
||||||
}
|
}
|
||||||
@ -82,8 +82,8 @@ func viewerGetHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
host = realHost
|
host = realHost
|
||||||
host = strings.Replace(host, ".", "_", -1)
|
|
||||||
}
|
}
|
||||||
|
host = strings.Replace(host, ".", "-", -1)
|
||||||
if streamID, ok := cfg.MapDomainToStream[host]; ok {
|
if streamID, ok := cfg.MapDomainToStream[host]; ok {
|
||||||
if path == "about" {
|
if path == "about" {
|
||||||
path = ""
|
path = ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user