State in production

This commit is contained in:
Chris Mann 2023-07-18 16:09:10 +02:00
parent 684b62ad91
commit 57dc8aa2bb
2 changed files with 6 additions and 1 deletions

View File

@ -56,6 +56,8 @@ type ConfigFile struct {
S3SecretKey string `json:"s3_secret_key"`
S3Region string `json:"s3_region"`
S3Bucket string `json:"s3_bucket"`
Org string `json:"org"`
}
var configFlag = flag.String("config", "./config.json", "Configuration file path")
@ -80,6 +82,8 @@ func readConfig() ConfigFile {
InvitationNameAttr: "cn",
InvitedAutoGroups: []string{},
Org: "ResDigita",
}
_, err := os.Stat(*configFlag)
@ -321,6 +325,7 @@ func ldapOpen(w http.ResponseWriter) *ldap.Conn {
type HomePageData struct {
Login *LoginStatus
BaseDN string
Org string
}
func handleHome(w http.ResponseWriter, r *http.Request) {

View File

@ -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="/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>