How to acquire a token? #856
-
I am trying to self-host but facing some problems. I am currently trying to acquire a token, but I can't see where QUIRREL_SERVER_URL is set? Is this the same as QUIRREL_BASE_URL or QUIRREL_API_URL? I'm confused. Also, where should I set PASSPHRASES? Is it inside version: '3.7'
services:
quirrel:
image: ghcr.io/quirrel-dev/quirrel:main
environment:
REDIS_URL: redis://redis
PASSPHRASES: lalalalalalala
ports:
- '9181:9181'
redis:
image: redis And when I do $ curl --user ignored:{PASSPHRASE} -X PUT {QUIRREL_SERVER_URL}/tokens/{NAME_OF_TOKEN} do I need to specify the fields inside also, can i run complete quirrel setup using just docker locally or do i really need to deploy it on the server for it to work? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Hi Akshay! The fields in Your Quirrel instance needs to be reachable from wherever your application runs. Running it locally won't be enough. If you're looking to set up Quirrel for local development, you don't need to deal with Docker. The CLI gives you a local development version of Quirrel by running |
Beta Was this translation helpful? Give feedback.
Hi Akshay! The fields in
{}
are to be replaced by you.QUIRREL_SERVER_URL
means "an HTTP url where your Quirrel deployment is reachable", so it's synonymous withQUIRREL_API_URL
.Your Quirrel instance needs to be reachable from wherever your application runs. Running it locally won't be enough.
If you're looking to set up Quirrel for local development, you don't need to deal with Docker. The CLI gives you a local development version of Quirrel by running
quirrel
.