Skip to content

Commit

Permalink
feat: set webserver config for showing kernel list in session detail …
Browse files Browse the repository at this point in the history
…panel
  • Loading branch information
ironAiken2 committed Feb 12, 2025
1 parent a12e32f commit 7bb2eff
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion configs/webserver/sample.conf
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,14 @@ force_2FA = false
directory_based_usage = false
# If true, display the custom allocation on the session launcher.
# allow_custom_resource_allocation = true
# If false, directory size in folder explorer will show `-`. default value is set to true.
is_directory_size_visible = true
# edu_appname_prefix = ""
# If false, the model store will be disabled.
# enable_model_store = True
# enable_extend_login_session = False
# If false, directory size in folder explorer will show `-`. default value is set to true.
# If true, the kernel list will be shown in the session detail panel.
show_kernel_list = false

[resources]
# Display "Open port to public" checkbox in the app launcher.
Expand Down
2 changes: 2 additions & 0 deletions src/ai/backend/web/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
t.Key("edu_appname_prefix", default=""): t.String(allow_blank=True),
t.Key("enable_model_store", default=True): t.ToBool(),
t.Key("enable_extend_login_session", default=False): t.ToBool(),
t.Key("is_directory_size_visible", default=True): t.ToBool(),
t.Key("show_kernel_list", default=False): t.ToBool(),
}).allow_extra("*"),
t.Key("resources"): t.Dict({
t.Key("open_port_to_public", default=False): t.ToBool,
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 @@ -33,6 +33,7 @@ connectionMode = "SESSION"
{% toml_field "eduAppNamePrefix" config["service"]["edu_appname_prefix"] %}
{% toml_field "enableModelStore" config["service"]["enable_model_store"] %}
{% toml_field "enableExtendLoginSession" config["service"]["enable_extend_login_session"] %}
{% toml_field "showKernelList" config["service"]["show_kernel_list"] %}

[resources]
{% toml_field "openPortToPublic" config["resources"]["open_port_to_public"] %}
Expand Down

0 comments on commit 7bb2eff

Please sign in to comment.