A generic value for APPWRITE_FUNCTION_ENDPOINT #4630
Replies: 3 comments 8 replies
|
The reason why it doesn't work is because the runtime container is not added to the same docker network as the traefik container. The downside about using that as the default endpoint is you'd have to use a self signed certificate for HTTPS. There's probably a workaround, but it can get complicated with various edge cases. |
|
I would also like to have it at some point - it would probably make function execution even faster. |
|
@zlmr It's not really about performance, I don't know if this can make functions faster but it's more about migrating from a server to another. If we have many functions we need to redefine all those ENV variables as the CLI doesn't export those. Making migrations from a test server to a production server hard to automate. |
Uh oh!
There was an error while loading. Please reload this page.
I was wondering why setting APPWRITE_FUNCTION_ENDPOINT to http://traefik/v1 was not working. I'm a bit familiar with docker compose and I know that services can access other services in docker by specifying the service name as a host. Why is this not working with Appwrite functions.
And finally isn't there any way to make a generic solution, a value that would work for any situation as long as functions are executed in the same server as Appwrite ?
All reactions