Closed VijaySharma815 closed 2 years ago
You can adjust the OR_HOSTNAME environment variable as shown in our default docker-compose profile:
https://github.com/openremote/openremote/blob/master/docker-compose.yml#L75
Note multiple origins can be configured using the OR_ADDITIONAL_HOSTNAMES variable.
For the proxy container the DOMAINNAMES variable can be used for multiple domains; certificates will be requested for supported FQDN but by default the proxy container will fallback to a self signed certificate, alternatively a custom certificate can be volume mapped as described in:
https://github.com/openremote/openremote/blob/master/profile/deploy.yml#L32
on your case you should set OR_HOSTNAME to 31.221.220.169
Everything working fine on local but when I am deploying the open remote on VM facing some issues:
I am able to see the login page. After entering username [admin] password [secret] some APIs getting failed.
Request URL: https://31.221.220.169/api/master/console/register Request Method: POST Status Code: 403 Forbidden
Error: Origin not allowed
I am pasting my docker-compose.yml file code here for reference.
apart from this, seeing some web socket error in browser console:
WebSocket connection to 'wss://31.221.220.169/websocket/events?Realm=master&Authorization=Bearer%20eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJ6ajNwOTlySEFUc3RyYXNud2r0PpZRlhzTb0KjKrVagLpmuNqg1EMhTeqvN1EsfmvcsRhpqa46Dbzr3p5soB1Y38ZAY1LmFerlNDlrK_6WoYL_u22lt3XL9Gys-EVk1Ut2-YIlQBz_BDI3-TRt9dGci_CR2faf3_XIasPE8rBrm-7zCsWV8vBQoQkKjSoLjV1uEW7A8sUP8SThOz-ZabQcFh-K22SAMx82jiF30_iFQ2HFxa7_Rs34lelAKug' failed: