Skip to content

Commit

Permalink
feat: add allow_app_download_panel to webserver config
Browse files Browse the repository at this point in the history
  • Loading branch information
agatha197 committed Oct 27, 2023
1 parent 075fa3c commit bc35e14
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configs/webserver/sample.conf
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ mask_user_info = false
# hide_agents = true
# URL to download the webui electron app. If blank, https://github.com/lablup/backend.ai-webui/releases/download will be used.
# app_download_url = ""
# Allow users to see the panel downloading the webui app from the summary page.
# allow_app_download_panel = true
# Enable/disable 2-Factor-Authentication (TOTP).
enable_2FA = false
# Force enable 2-Factor-Authentication (TOTP).
Expand Down
1 change: 1 addition & 0 deletions src/ai/backend/web/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
t.Key("enable_container_commit", default=False): t.ToBool,
t.Key("hide_agents", default=True): t.ToBool,
t.Key("app_download_url", default=""): t.String(allow_blank=True),
t.Key("allow_app_download_panel", default=True): t.ToBool,
t.Key("enable_2FA", default=False): t.ToBool(),
t.Key("force_2FA", default=False): t.ToBool(),
t.Key("system_SSH_image", default=""): t.String(allow_blank=True),
Expand Down
1 change: 1 addition & 0 deletions src/ai/backend/web/templates/config.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ connectionMode = "SESSION"
{% toml_field "enableContainerCommit" config["service"]["enable_container_commit"] %}
{% toml_field "hideAgents" config["service"]["hide_agents"] %}
{% toml_field "appDownloadUrl" config["service"]["app_download_url"] %}
{% toml_field "allowAppDownloadPanel" config["service"]["allow_app_download_panel"] %}
{% toml_field "enable2FA" config["service"]["enable_2FA"] %}
{% toml_field "force2FA" config["service"]["force_2FA"] %}
{% toml_field "systemSSHImage" config["service"]["system_SSH_image"] %}
Expand Down

0 comments on commit bc35e14

Please sign in to comment.