I’ve narrowed down the issue. I installed silverbullet via deno and ran the command that you successfully tested
SB_USER=zef:zef SB_AUTH_TOKEN=1234 silverbullet ~/tmp
and I could PUT without an issue. I then tried a https PUT via ngix proxy manager and it also worked
I noticed that when I run docker compose
services:
silverbullet:
image: zefhemel/silverbullet
restart: unless-stopped
environment:
- SB_AUTH_TOKEN:1234
- SB_USER=zef:zef
volumes:
- ./space:/space
ports:
- 3000:3000
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
the SB_AUTH_TOKEN wasn’t included in the env variables when I inspected docker
"Env": [
"SB_USER=zef:zef",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"DENO_DIR=/deno-dir/",
"DENO_INSTALL_ROOT=/usr/local",
"DENO_VERSION=1.41.2",
"TINI_VERSION=v0.19.0",
"SB_HOSTNAME=0.0.0.0",
"SB_FOLDER=/space"
],
Great I thought! I’ve cracked it! I then ran docker from the command line
docker run --restart unless-stopped -e SB_USER=zef:zef -e SB_AUTH_TOKEN:1234 -v ./space:/space -p 3000:3000 zefhemel/silverbullet
and the SB_AUTH_TOKEN is now included
"Env": [
"SB_USER=admin:zef:zef",
"SB_AUTH_TOKEN:1234",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"DENO_DIR=/deno-dir/",
"DENO_INSTALL_ROOT=/usr/local",
"DENO_VERSION=1.41.2",
"TINI_VERSION=v0.19.0",
"SB_HOSTNAME=0.0.0.0",
"SB_FOLDER=/space"
],
But it still doesn’t work
I don’t know how docker works but could the SB_AUTH_TOKEN not be passed into silverbullet somehow? Thanks