set demo users to default off
This commit is contained in:
@@ -1627,6 +1627,8 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes = [], depends_on =
|
|||||||
"OCIS_LOG_LEVEL": "error",
|
"OCIS_LOG_LEVEL": "error",
|
||||||
"SETTINGS_DATA_PATH": "/srv/app/tmp/ocis/settings",
|
"SETTINGS_DATA_PATH": "/srv/app/tmp/ocis/settings",
|
||||||
"OCIS_INSECURE": "true",
|
"OCIS_INSECURE": "true",
|
||||||
|
"ACCOUNTS_DEMO_USERS_AND_GROUPS": True, # deprecated, remove after switching to LibreIDM
|
||||||
|
"IDM_CREATE_DEMO_USERS": True,
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
user = "33:33"
|
user = "33:33"
|
||||||
@@ -1707,6 +1709,8 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes = [], depends_on =
|
|||||||
"OCIS_MACHINE_AUTH_API_KEY": "change-me-please",
|
"OCIS_MACHINE_AUTH_API_KEY": "change-me-please",
|
||||||
"OCIS_INSECURE": "true",
|
"OCIS_INSECURE": "true",
|
||||||
"PROXY_ENABLE_BASIC_AUTH": "true",
|
"PROXY_ENABLE_BASIC_AUTH": "true",
|
||||||
|
"ACCOUNTS_DEMO_USERS_AND_GROUPS": True, # deprecated, remove after switching to LibreIDM
|
||||||
|
"IDM_CREATE_DEMO_USERS": True,
|
||||||
}
|
}
|
||||||
|
|
||||||
# Pass in "default" accounts_hash_difficulty to not set this environment variable.
|
# Pass in "default" accounts_hash_difficulty to not set this environment variable.
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ func DefaultConfig() *config.Config {
|
|||||||
JWTSecret: "Pive-Fumkiu4",
|
JWTSecret: "Pive-Fumkiu4",
|
||||||
},
|
},
|
||||||
HashDifficulty: 11,
|
HashDifficulty: 11,
|
||||||
DemoUsersAndGroups: true,
|
DemoUsersAndGroups: false,
|
||||||
Repo: config.Repo{
|
Repo: config.Repo{
|
||||||
Backend: "CS3",
|
Backend: "CS3",
|
||||||
Disk: config.Disk{
|
Disk: config.Disk{
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ func DefaultConfig() *config.Config {
|
|||||||
Service: config.Service{
|
Service: config.Service{
|
||||||
Name: "idm",
|
Name: "idm",
|
||||||
},
|
},
|
||||||
CreateDemoUsers: true,
|
CreateDemoUsers: false,
|
||||||
ServiceUserPasswords: config.ServiceUserPasswords{
|
ServiceUserPasswords: config.ServiceUserPasswords{
|
||||||
IdmAdmin: "idm",
|
IdmAdmin: "idm",
|
||||||
Idp: "idp",
|
Idp: "idp",
|
||||||
|
|||||||
Reference in New Issue
Block a user