From 1d117ea4809894492dcdf3b2215a1af38145e997 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 12 Nov 2020 01:42:28 +0100 Subject: [PATCH] Config on legal mentions --- docs/ghostream.example.yml | 12 ++++++++++++ internal/config/config.go | 5 +++++ web/template/index.html | 28 ++++++++++++++++------------ web/web.go | 4 ++++ 4 files changed, 37 insertions(+), 12 deletions(-) diff --git a/docs/ghostream.example.yml b/docs/ghostream.example.yml index 148f89b..4e98646 100644 --- a/docs/ghostream.example.yml +++ b/docs/ghostream.example.yml @@ -173,6 +173,18 @@ web: # #widgetURL: "" + # IMPORTANT, CHANGE THIS + # You need to declare which entity you are and to specify an address to claim some content. + legalMentionsEntity: "l'association Crans" + legalMentionsAddress: "61 Avenue du Président Wilson, 94235 Cachan Cedex, France" + legalMentionsFullAddress: + - Association Cr@ns - ENS Paris-Saclay + - Notification de Contenus Illicites + - 4, avenue des Sciences + - 91190 Gif-sur-Yvette + - France + legalMentionsEmail: "bureau[at]crans.org" + ## WebRTC server ## webrtc: # If you disable webrtc module, the web client won't be able to play streams. diff --git a/internal/config/config.go b/internal/config/config.go index fee41a7..de86f7b 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -82,6 +82,11 @@ func New() *Config { MapDomainToStream: make(map[string]string), PlayerPoster: "/static/img/no_stream.svg", ViewersCounterRefreshPeriod: 20000, + LegalMentionsEntity: "l'association Crans", + LegalMentionsAddress: "61 Avenue du Président Wilson, 94235 Cachan Cedex, France", + LegalMentionsFullAddress: []string{"Association Cr@ns - ENS Paris-Saclay", + "Notification de Contenus Illicites", "4, avenue des Sciences", "91190 Gif-sur-Yvette", "France"}, + LegalMentionsEmail: "bureau[at]crans.org", }, WebRTC: webrtc.Options{ Enabled: false, diff --git a/web/template/index.html b/web/template/index.html index 3e88858..53de923 100644 --- a/web/template/index.html +++ b/web/template/index.html @@ -9,7 +9,11 @@

Comment je diffuse ?

-

Pour diffuser un contenu vous devez être adhérent Crans.

+

+ Pour diffuser un contenu vous devez avoir des identifiants valides. + Si le service est hébergé par une association, il est probable que + vous deviez être membre de cette association. +

Avec Open Broadcaster Software

@@ -21,7 +25,7 @@