This commit is contained in:
Marcin Tojek 2025-12-03 15:12:00 +01:00
parent 019d735fdd
commit 82c86db196
2 changed files with 9 additions and 5 deletions

View File

@ -51,7 +51,7 @@ variable "group" {
resource "coder_script" "open-webui" {
agent_id = var.agent_id
display_name = "open-webui"
icon = "/icon/openai.svg"
icon = "/icon/openwebui.svg"
script = templatefile("${path.module}/run.sh", {
HTTP_SERVER_LOG_PATH : var.log_path,
HTTP_SERVER_PORT : var.port,
@ -64,7 +64,7 @@ resource "coder_app" "open-webui" {
slug = "open-webui"
display_name = "Open WebUI"
url = "http://localhost:${var.port}"
icon = "/icon/openai.svg"
icon = "/icon/openwebui.svg"
subdomain = true
share = var.share
order = var.order

View File

@ -1,8 +1,12 @@
#!/usr/bin/env sh
set -e
HTTP_SERVER_LOG_PATH=$${HTTP_SERVER_LOG_PATH}
HTTP_SERVER_PORT=$${HTTP_SERVER_PORT}
set -eu
echo "1. $${HTTP_SERVER_LOG_PATH}"
echo "2. ${HTTP_SERVER_LOG_PATH}"
HTTP_SERVER_LOG_PATH=${HTTP_SERVER_LOG_PATH}
HTTP_SERVER_PORT=${HTTP_SERVER_PORT}
# shellcheck disable=SC2059
printf '\033[0;1mInstalling Open WebUI...\n\n'