openflighthpc / concertim-ansible-playbook

Ansible playbook for building a Concertim appliance
Eclipse Public License 2.0
0 stars 0 forks source link

Set action cable allowed origins for prod #81

Closed timalces closed 8 months ago

timalces commented 8 months ago

Enables use of visualiser's websockets when running in production mode, by setting the environment variable ACTION_CABLE_ALLOWED_ORIGINS

This is defined in ansible/etc/globals.yaml, but if not present here, will be set to the value of ansible_facts.hostname.

When setting the allowed origins, the port can optionally be set - if no port is specified, any port is allowed. Likewise the protocol can optionally be set (http or https) and if no protocol included, both are allowed.

Linked to https://github.com/alces-flight/concertim-ct-visualisation-app/pull/108