Horizon HTTPS configuration

I want to add HTTPS support to Horizon, I am following this guide: https://docs.openstack.org/horizon/pike/admin/customize-configure.html#configure-dashboard which involves modifying /etc/openstack-dashboard/local_settings.py and /etc/apache2/conf.d/openstack-dashboard.conf

local_settings.py can be update with:

juju attach-resource openstack-dashboard theme=…/theme.tgz
juju config openstack-dashboard custom-theme=true

But how can I update Apache configuration? My question is, is there away to update Apache configuration with juju? or I have to edit the file in each of the dashboard units?

I presume you do not want to use your existing Vault service for this?

yes please, I prefer to use the vault, how can i use the vault for horizon with https?

In the usual way. Add a relation:

juju add-relation openstack-dashboard:certificates vault:certificates

May I ask what documentation or bundle you are following/using to set up your cloud? The above should be the default.

i started my cloud with this bundle https://github.com/dvntstph/devzero-misc/tree/master/juju/Openstack_Juju_Bundles

According to this https://docs.openstack.org/horizon/pike/admin/customize-configure.html#configure-dashboard HTTP is the default not HTTPS

@pmatulis

Can some one help here please? how can i configure horizon with https in a juju way