I’m not sure anybody has tried this, but it should work fine except that it requires Deno 1.40 and this port only seems up to 1.39. Not sure if it’s hard to bump that?
Have had it running for a while in a jail (FreeBSD container) on FreeBSD 13.2p9.
I installed deno-1.39, found I needed to edit the launch script to exec deno run --allow-all --unstable --no-config 'https://get.silverbullet.md/' "$@"
Then created this startup script at /usr/local/etc/rc.d/silverbullet
Don’t forget to enable the service echo silverbullet_enable="YES" >> /etc/rc.conf
Realised I needed encryption and authentication. So nginx to the rescue.
Installed nginx, set it up with the following basic authentication and TLS (with certbot):
/usr/local/etc/nginx/nginx.conf
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 10m;
server {
listen 443 ssl;
server_name mydomain;
ssl_certificate mydomain.crt;
ssl_certificate_key mydomain.key;
ssl_protocols TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
auth_basic "some text here";
auth_basic_user_file .htpasswd; # put your user/password in here
location / {
proxy_pass http://127.0.0.1:3000;
}
}
1.40 introduced some API changes, specifically around file system that SilverBullet is now using, so even if it may boot with 1.39, likely the moment you load or save a file you’ll see errors.
I have been using it a few weeks, I have about a dozen notes. The server has been rebooted a few times, I notice no issues. Glad it works though, just not seeing any issues