-
-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Feat): Added Appwrite template #685
base: canary
Are you sure you want to change the base?
Conversation
labels: | ||
- traefik.enable=true | ||
- traefik.http.services.appwrite_api.loadbalancer.server.port=80 | ||
|
||
- traefik.http.routers.awmain.rule=Host(`YOUR_DOMAIN_HERE`) && !PathPrefix(`/console`) && !PathPrefix(`/v1/realtime`) | ||
- traefik.http.routers.awmain.entrypoints=web,websecure | ||
- traefik.http.routers.awmain.tls=true | ||
- traefik.http.routers.awmain.tls.certresolver=letsencrypt | ||
- traefik.http.routers.awmain.service=appwrite_api | ||
|
||
- traefik.http.routers.awserverf.rule=Host(`YOUR_FUNCTION_DOMAIN_HERE`) | ||
- traefik.http.routers.awserverf.entrypoints=web,websecure | ||
- traefik.http.routers.awserverf.tls=true | ||
- traefik.http.routers.awserverf.tls.certresolver=letsencrypt | ||
- traefik.http.routers.awserverf.service=appwrite_api |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this manual labels?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In appwrite it seems you need to redirect traefik to the appwrite container for all route but not for console or realtime (which goes to their respective containers), otherwise you'll face some issues with the admin area and wirh some websocket connections (that rely on the realtime endpoint)
When I made the template I faced the issue that the domain tab didn't worked (at least for me it didn't) so I had to put the manual traefik labels to make it work.
About the function_domain labels: in some cases the function domain can be different from the regular API domains, so you need to explicitly add it in the traefik routers.
Please make this available. |
I added a basic Appwrite configuration.
It uses all the traefik settings inside docker-compose.yml (as using domains tab can create some issues on the first run... at least it failed for me several times in that stage)