feat: add security related settings

This commit is contained in:
Steven
2024-08-28 23:46:06 +08:00
parent 4e5810e205
commit 1167df29d8
16 changed files with 377 additions and 359 deletions

View File

@@ -21,10 +21,6 @@ message WorkspaceProfile {
string version = 2;
// mode is the instance mode (e.g. "prod", "dev" or "demo").
string mode = 3;
// public is a flag that the instance is open for other users.
bool public = 4;
// password_auth is a flag whether the instance allows password authentication.
bool password_auth = 5;
// instance_url is the URL of the instance.
string instance_url = 6;
}

View File

@@ -36,6 +36,10 @@ message WorkspaceSetting {
}
message WorkspaceGeneralSetting {
// disallow_signup disallows signup for new users.
bool disallow_signup = 1;
// disallow_password_signin disallows user to sign in with password. Except for the admins.
bool disallow_password_signin = 2;
// additional_script is the additional script.
string additional_script = 3;
// additional_style is the additional style.