Libsql?

2 years ago

Is it possible to deploy libsql on railway?

39 Replies

2 years ago

n/a


2 years ago


2 years ago

Thanks!


2 years ago

What about the authToken? How do i get that?


2 years ago

theres no need for an auth token since you will be using it exclusively over the private network, thus once in production you should remove the http proxy


2 years ago

Alright thanks!


webdevcody
PRO

2 years ago

@Brody hey, if I used that libsql template, is there a way I can use tableplus to view the tables?


webdevcody
PRO

2 years ago

like from my local? I see you said no need for an auth token, but I don't get how I could access the data without one


webdevcody
PRO

2 years ago

also, I'm not sure what you mean by "in production remove the http proxy", how do I do that?


webdevcody
PRO

2 years ago

oh wait, I see


webdevcody
PRO

2 years ago

just delete the public hostname


2 years ago

there is no auth so you'd simply connect to the database from it's public hostname if you wanted to connect to it locally, but I said to remove the public domain, so it's a bit of a catch 22 and you're back with the original problem you had on twitter with sqlite


webdevcody
PRO

2 years ago

well it seems like there is a way to deploy this image with a token


webdevcody
PRO

2 years ago

SQLDAUTHJWT_KEY


webdevcody
PRO

2 years ago

but I'm failing to figure out how to properlly generate that key


2 years ago

what do the docs say it should be?


webdevcody
PRO

2 years ago

SQLD_AUTH_JWT_KEY_FILE

Path to a file with a JWT decoding key used to authenticate clients in the Hrana and HTTP
APIs. The key is either a PKCS#8-encoded Ed25519 public key in PEM, or just plain bytes of
the Ed25519 public key in URL-safe base64.

You can also pass the key directly in the env variable SQLDAUTHJWT_KEY.


webdevcody
PRO

2 years ago

I've tried ssh-keygen -t ed25519


webdevcody
PRO

2 years ago

then I've tried pasting that key, I've tried base64 encoding it, tried various things


webdevcody
PRO

2 years ago

I'm also wondering why it needs the public key… shouldn't the secure server use the private key?


2 years ago

why not try basic auth?


webdevcody
PRO

2 years ago

tableplus seems to want a key as an input


webdevcody
PRO

2 years ago

I could try


webdevcody
PRO

2 years ago

yeah basic seems to work fine with tableplus


webdevcody
PRO

2 years ago

now trying to figure out how to set this up with drizzle


2 years ago

ideally that would be included with the template, but don't know how I'd do that in a user friendly way considering the template variable syntax can't run arbitrary commands


webdevcody
PRO

2 years ago

maybe just including a link to the libsql docs that outline this part might be useful


2 years ago

yeah that sounds like the ideal thing to do in this situation



webdevcody
PRO

2 years ago

but this is awesome, I think this fixes all my concerns I had with sqlite


webdevcody
PRO

2 years ago

although I still don't see the strong argument to use it over postgres if we are still just wrapping it with an http service?


webdevcody
PRO

2 years ago

I guess it uses less memory?


2 years ago

so now this is just like postgres in some way 🙂


2 years ago

pretty sure this would use a crazy amount less memory


webdevcody
PRO

2 years ago

now I need to look into this backup flag they have


webdevcody
PRO

2 years ago

LIBSQL bottomless


2 years ago


2 years ago

overview updated -


2 years ago

How can i add a replica?


Loading...