From 1dc3323a48e9c6b342127883f652f7027a8c46f8 Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Thu, 13 Nov 2025 14:09:12 +0000 Subject: [PATCH] appview: assortment of fixes - allow repo website to be empty when editing base settings - fix spindle hostname in nix vim - fix default PLC url in spindles Signed-off-by: oppiliappan --- appview/repo/settings.go | 2 +- nix/vm.nix | 2 +- spindle/config/config.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/appview/repo/settings.go b/appview/repo/settings.go index b0ed53f5..1b54b342 100644 --- a/appview/repo/settings.go +++ b/appview/repo/settings.go @@ -374,7 +374,7 @@ func (rp *Repo) EditBaseSettings(w http.ResponseWriter, r *http.Request) { ) err = rp.validator.ValidateURI(website) - if err != nil { + if website != "" && err != nil { l.Error("invalid uri", "err", err) rp.pages.Notice(w, noticeId, err.Error()) return diff --git a/nix/vm.nix b/nix/vm.nix index 1af69431..0caf8a61 100644 --- a/nix/vm.nix +++ b/nix/vm.nix @@ -97,7 +97,7 @@ in enable = true; server = { owner = envVar "TANGLED_VM_SPINDLE_OWNER"; - hostname = envVarOr "TANGLED_VM_SPINDLE_OWNER" "localhost:6555"; + hostname = envVarOr "TANGLED_VM_SPINDLE_HOST" "localhost:6555"; plcUrl = plcUrl; jetstreamEndpoint = jetstream; listenAddr = "0.0.0.0:6555"; diff --git a/spindle/config/config.go b/spindle/config/config.go index 65b9c2eb..ea310a6d 100644 --- a/spindle/config/config.go +++ b/spindle/config/config.go @@ -13,7 +13,7 @@ type Server struct { DBPath string `env:"DB_PATH, default=spindle.db"` Hostname string `env:"HOSTNAME, required"` JetstreamEndpoint string `env:"JETSTREAM_ENDPOINT, default=wss://jetstream1.us-west.bsky.network/subscribe"` - PlcUrl string `env:"PLC_URL, default=plc.directory"` + PlcUrl string `env:"PLC_URL, default=https://plc.directory"` Dev bool `env:"DEV, default=false"` Owner string `env:"OWNER, required"` Secrets Secrets `env:",prefix=SECRETS_"` -- 2.51.2