Boon_Tan
(Boon Tan)
September 15, 2022, 7:02am
1
Hi, I installed Backendless Pro and activated the trial license. In addition, the web traffic is served with a load balancer and a custom domain is pointing to the load balancer.
When I previewed the app, it opened up a new tab with the URL “backendless.local:9000”, which failed to load. My question now is: how can I change the URL “backendless.local” to my own custom domain?
Load Balancer: AWS Application Load Balancer
Thanks
Backendless Version (Pro )
sergey.kuk
(Sergii Kukurudziak)
September 15, 2022, 10:24am
2
Hello @Boon_Tan
Thank you for trying out Backendless PRO.
You should have at least 2 domain:
dev.your-domain.com
- for backendless console
api.your-domain.com
- for the API
for API domain create rule on ELB to send traffic on port 9000
for dev domain create rule on ELB to send traffic on port 80
then you should go to consul and change domain configuration for the backendless service.
# First Configuration
[API host configuration](#api_conf)<br>
[Backendless console host configuration](#console_conf)<br>
[Mysql connection configuration](#mysql_conf)<br>
[Redis connection configuration](#redis_conf)<br>
[Mongo connection configuration](#mongo_conf)<br>
### <a name="api_conf">API host configuration</a>
- go to `http://<consul-host>/ui/#/dc1/kv/config/server/publicHost/edit` provide yor public domain or IP that you will use for API, for example `api.my-domain.com`
- if you use `https` for API then change `http://<consul-host>/ui/#/dc1/kv/config/server/publicProtocol/edit` value to `https`
- go to `http://<consul-host>/ui/#/dc1/kv/config/server/publicPort/edit` provide port that you will use for API, by default it is 80, if you use `https` protocol, then change the port to `443`
### <a name="console_conf">Backendless console host configuration</a>
Go to `http://<consul-host>/ui/#/dc1/kv/config/console/rootUrl/edit` and provide a full url to the backendless console.
For example you would like to have `dev.my-domain.com` as a domain for the backendless console, then you have to put the following value: `https://dev.my-domain.com`.
If you would like to use IP for example `10.0.3.16` and port `31900` then you should put the following value: `http://10.0.3.16:31900`
This file has been truncated. show original
Consul you can find on port 8500.
Boon_Tan
(Boon Tan)
September 15, 2022, 12:00pm
3
sergey.kuk
(Sergii Kukurudziak)
September 15, 2022, 12:16pm
4
@Boon_Tan
if you want to use ELB for consul you should create ELB rule and point it to port 8500
Boon_Tan
(Boon Tan)
September 16, 2022, 6:54am
5
Thanks Sergey
It worked, but I also have to manually restart the services (With the script “./backendless_start.sh”)
Thanks