Monorepo for Tangled tangled.org

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 <me@oppi.li>

oppi.li 1dc3323a 1331c00f

verified
Changed files
+3 -3
appview
nix
spindle
config
+1 -1
appview/repo/settings.go
··· 374 374 ) 375 375 376 376 err = rp.validator.ValidateURI(website) 377 - if err != nil { 377 + if website != "" && err != nil { 378 378 l.Error("invalid uri", "err", err) 379 379 rp.pages.Notice(w, noticeId, err.Error()) 380 380 return
+1 -1
nix/vm.nix
··· 97 97 enable = true; 98 98 server = { 99 99 owner = envVar "TANGLED_VM_SPINDLE_OWNER"; 100 - hostname = envVarOr "TANGLED_VM_SPINDLE_OWNER" "localhost:6555"; 100 + hostname = envVarOr "TANGLED_VM_SPINDLE_HOST" "localhost:6555"; 101 101 plcUrl = plcUrl; 102 102 jetstreamEndpoint = jetstream; 103 103 listenAddr = "0.0.0.0:6555";
+1 -1
spindle/config/config.go
··· 13 13 DBPath string `env:"DB_PATH, default=spindle.db"` 14 14 Hostname string `env:"HOSTNAME, required"` 15 15 JetstreamEndpoint string `env:"JETSTREAM_ENDPOINT, default=wss://jetstream1.us-west.bsky.network/subscribe"` 16 - PlcUrl string `env:"PLC_URL, default=plc.directory"` 16 + PlcUrl string `env:"PLC_URL, default=https://plc.directory"` 17 17 Dev bool `env:"DEV, default=false"` 18 18 Owner string `env:"OWNER, required"` 19 19 Secrets Secrets `env:",prefix=SECRETS_"`