As appwrite is currently using.
Like this https://your.host.com/.well-known/assetlinks.json without any another port
The reverse proxy should run on the standard ports and then it can forward requests for whatever host to the respective apps running on non-standard ports
This is because only one app can be listening on a port at a time
Excuse me an not that expert but if setup it like this: If I try to access the appwrite using https://your-host.com And https://your.host.com/.well-known/assetlinks.json
Appwrite using Traefik And the new link using nginx Nothing will happen? Or do I have to Give the Nginx another port To access the file from web like this https://your.host.com:8081/.well-known/assetlinks.json
You would run nginx on 443 and 80 and other apps like Appwrite on other ports, but you'll still be able to access Appwrite on ports 443 and 80
Ok, when the setup for appwrite asks me what ports do I want to use I have to use another ports than 80 and 443, and the appwrite will still work when I access it with the link Like this without any port: https://your-host.com/
Without any ports Specified ?
I wanna make the same domain host the appwrite and the file.
Same domain won't work
This is the problem I want to host the file on the same domain, that's why I said if I can put it with the appwrite Because I want to access it like this
https://your.host.com/.well-known/assetlinks.json
when I open https//your-host.com It should open appwrite, then when opening : https://your.host.com/.well-known/assetlinks.json it should open the file
You also shouldn't really have both on the same domain... Appwrite is your backend. The asset link is like your front end
Then the best thing is to make a sub domain For it?
And add it to a platform in appwrite in order for it to work ?
For example, id have:
- Appwrite on appwrite.company.com
- App on example.com
- Custom endpoint on appwrite.example.com if needed
I'm making the app in flutter then i should do this: 1-example.com is my website 2- appwrite.example.com is appwrite. 3- something.example.com is my custom thing
Because I want to use the assetlinks.json for deeplink I have to put it under
https://something.example.com/.well-known/assetlinks.json
Right ?
Then I have to add it to my project platform
Your main Appwrite domain should not be app specific because it's designed to be used for multiple apps
The well known link would be on example.com
that's right I never thought of itππ
Do I have to add it to a project platform in order for it to works or since it is the main domain and appwrite is sub of it I don't have to?
Yes, you will
Thanks,
Recommended threads
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Migrate from cloud to localhost
Hello everyone. I need to migrate my test project from cloud to localhost, however it seems that this is possible only if a self-hosted appwrite instance it's h...