Hi,
I have a working docker setup with traefik in front of the services. Everything works as expected except for login with CLI.
I've tried with
appwrite client -e https://mardy.dev.cloud/v1
and also with -p -k
The response I get is that the server is not running as expected.
Error: Invalid endpoint or your Appwrite server is not running as expected.
Do anyone have an idea what it could be? Traefik is using a self-signed cert so maybe I need to turn something off for Appwrite?
try appwrite login --endpoint=https://mardy.dev.cloud/v1
I have tried that also. Same problem. The reason I want to use the cli is to avoid connecting repos for functions and sites so I can develop locally.
have you tried setting selfSigned to true?
Yes, with command (failed) and also in *.json config.
Is there any way to prevent appwrite to use ssl and just serve on http? I’ve read that appwrite generates a cert for local dev.
I will try again with a fresh install.
if on localhost it skips the ssl cert generation
you can see it skips it in container logs
Ok cool. Then the ssl with traefik works.
I did a fresh install and the cli could login on 127.0.0.1 but not localhost. In the browser I can visit localhost but not login. On 127.0.0.1 I can visit and login.
Will try one more fresh install on my gaming pc also just to verify.
In the end I think I will go with a dnsmasq container since the hosts file can’t handle wildcards.
Recommended threads
- Unable to init function via cli
Hello! I have created a new self hosted instance of appwrite 1.9.6 and have connected to that insatnce with the cli 27.2.0 that was released a few hours ago. Wh...
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...
- OAuth Missing redirect URL
Hello all, on a Flutter mobile app with latest Appwrite dependency (25.4.0) I always got "Missing redirect URL" - "Your OAuth login flow is missing a proper red...