Hello,
I would like to know if it is possible to secure consul UI with nginx like this:
location / {
auth_basic off;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
proxy_pass https://127.0.0.1:{{ consul_ports_https }};
}
location /ui {
auth_basic "Consul UI access";
auth_basic_user_file /etc/nginx/consul.htpasswd;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
proxy_pass https://127.0.0.1:{{ consul_ports_https }};
}
The url /ui is only used for the web ui or in something else ?
Is-it better to secure / ? In this case, do I need to change the config of the consul agent ?
Thanks.