Skip to content

Commit

Permalink
Merge pull request #17 from NethServer/OCSAdminURL
Browse files Browse the repository at this point in the history
create OCSAdminURL
  • Loading branch information
stephdl authored Mar 24, 2024
2 parents 0718b53 + 083b975 commit 60a49ac
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion imageroot/actions/configure-module/10EnvSOGo
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ data = json.load(sys.stdin)

# Setup configuration from user input.
agent.set_env("MAIL_SERVER", data["mail_server"])
agent.set_env("ADMIN_USERS", data.get("admin_users","Administrator"))
agent.set_env("ADMIN_USERS", data.get("admin_users","administrator").lower())
agent.set_env("LDAP_DOMAIN", data["ldap_domain"])
agent.set_env("MAIL_DOMAIN",data.get("mail_domain",""))
agent.set_env("WOWORKERSCOUNT",data.get("workers_count","3"))
Expand Down
2 changes: 1 addition & 1 deletion imageroot/actions/get-configuration/20read
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ config["host"] = os.getenv("TRAEFIK_HOST","")
config["lets_encrypt"] = os.getenv("TRAEFIK_LETS_ENCRYPT") == "True"
config["mail_server"] = os.getenv("MAIL_SERVER", "") # the value is the Mail module UUID!
config["mail_domain"] = os.getenv("MAIL_DOMAIN", "") # the value is the mail domain of user to force domain identity : [email protected] !
config["admin_users"] = os.getenv("ADMIN_USERS", "Administrator")
config["admin_users"] = os.getenv("ADMIN_USERS", "administrator")
config["ldap_domain"] = os.getenv("LDAP_DOMAIN", "")
config["workers_count"] = os.getenv("WOWORKERSCOUNT", "3")
config["auxiliary_account"] = os.getenv("AUXILIARYACCOUNT") == "True"
Expand Down
2 changes: 1 addition & 1 deletion imageroot/bin/expand-configuration
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jenv = Environment(
)

properties = {
"admin_users" : os.environ['ADMIN_USERS'],
"admin_users" : os.environ['ADMIN_USERS'].lower(),
"ldap_schema" : os.environ['SOGO_LDAP_SCHEMA'],
"ldap_port" : int(os.environ['SOGO_LDAP_PORT']),
"ldap_user" : os.environ['SOGO_LDAP_USER'],
Expand Down
1 change: 1 addition & 0 deletions imageroot/templates/sogo.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
OCSFolderInfoURL = "mysql://sogo:Nethesis,[email protected]:3306/sogo/sogo_folder_info";
OCSSessionsFolderURL = "mysql://sogo:Nethesis,[email protected]:3306/sogo/sogo_sessions_folder";
OCSEMailAlarmsFolderURL = "mysql://sogo:Nethesis,[email protected]:3306/sogo/sogo_alarms_folder";
OCSAdminURL = "mysql://sogo:Nethesis,[email protected]:3306/sogo/sogo_admin";


/* 20 Mail */
Expand Down

0 comments on commit 60a49ac

Please sign in to comment.