State in production
This commit is contained in:
parent
684b62ad91
commit
57dc8aa2bb
5
main.go
5
main.go
@ -56,6 +56,8 @@ type ConfigFile struct {
|
|||||||
S3SecretKey string `json:"s3_secret_key"`
|
S3SecretKey string `json:"s3_secret_key"`
|
||||||
S3Region string `json:"s3_region"`
|
S3Region string `json:"s3_region"`
|
||||||
S3Bucket string `json:"s3_bucket"`
|
S3Bucket string `json:"s3_bucket"`
|
||||||
|
|
||||||
|
Org string `json:"org"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var configFlag = flag.String("config", "./config.json", "Configuration file path")
|
var configFlag = flag.String("config", "./config.json", "Configuration file path")
|
||||||
@ -80,6 +82,8 @@ func readConfig() ConfigFile {
|
|||||||
|
|
||||||
InvitationNameAttr: "cn",
|
InvitationNameAttr: "cn",
|
||||||
InvitedAutoGroups: []string{},
|
InvitedAutoGroups: []string{},
|
||||||
|
|
||||||
|
Org: "ResDigita",
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err := os.Stat(*configFlag)
|
_, err := os.Stat(*configFlag)
|
||||||
@ -321,6 +325,7 @@ func ldapOpen(w http.ResponseWriter) *ldap.Conn {
|
|||||||
type HomePageData struct {
|
type HomePageData struct {
|
||||||
Login *LoginStatus
|
Login *LoginStatus
|
||||||
BaseDN string
|
BaseDN string
|
||||||
|
Org string
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleHome(w http.ResponseWriter, r *http.Request) {
|
func handleHome(w http.ResponseWriter, r *http.Request) {
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<a class="list-group-item list-group-item-action" href="/directory">Annuaire</a>
|
<a class="list-group-item list-group-item-action" href="/directory">Annuaire</a>
|
||||||
-->
|
-->
|
||||||
<a class="list-group-item list-group-item-action" href="/SOGo">Accéder à mes curriels, mon agenda et à mes contacts</a>
|
<a class="list-group-item list-group-item-action" href="/SOGo">Accéder à mes curriels, mon agenda et à mes contacts</a>
|
||||||
<a class="list-group-item list-group-item-action" href="https://www.lesgrandsvoisins.com">Accéder au numérique des Grands Voisins .com</a>
|
<a class="list-group-item list-group-item-action" href="https://www.lesgrandsvoisins.com/resdigita">Accéder au numérique des Grands Voisins .com</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user