Skip to content

Commit

Permalink
Merge branch 'tphummel-fix-nginx-root'
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfinlayson committed Mar 3, 2016
2 parents 8ba6448 + 1013d91 commit 81c6a5a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
11 changes: 0 additions & 11 deletions tasks/install-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,3 @@
- name: allow nginx to connect to consul (selinux)
seboolean: name=httpd_can_network_connect state=yes persistent=yes
when: consul_is_ui and consul_install_nginx_config and ansible_selinux.status == "enabled"

- name: create nginx home
file: >
state=directory
path=/var/www/consul/htdocs
owner=root
group=root
mode=0755
notify:
- restart nginx
when: consul_install_nginx_config and consul_enable_nginx_config
2 changes: 1 addition & 1 deletion templates/consul-nginx.conf.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
server {
server_name {{ consul_ui_server_name }};
root /var/www/consul/htdocs;
root {{ consul_ui_dir }};

# --- listen ----------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions test/templates/consul-nginx.conf.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
server {
server_name {{ consul_ui_server_name }};
root /var/www/consul/htdocs;
root {{ consul_ui_dir }};

# --- listen ----------------------------------------------------------------

Expand All @@ -18,7 +18,7 @@ server {


location / {
proxy_pass http://$server_addr:{{ consul_port_http }};
proxy_pass http://{{ consul_client_address }}:{{ consul_port_http }};
{%- if consul_ui_require_auth -%}
auth_basic "Restricted";
auth_basic_user_file {{ consul_ui_auth_user_file }};
Expand Down

0 comments on commit 81c6a5a

Please sign in to comment.