Skip to content

Commit

Permalink
Use caddy server instead of nginx for serving Snowplow Mini dashboard (
Browse files Browse the repository at this point in the history
…closes #130)
  • Loading branch information
aldemirenes authored and BenFradet committed Nov 30, 2017
1 parent d2510d3 commit a96533e
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 46 deletions.
1 change: 0 additions & 1 deletion integration/integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ sudo service snowplow_stream_enrich start
sudo service snowplow_elasticsearch_loader_good start
sudo service snowplow_elasticsearch_loader_bad start
sudo service kibana4_init start
sudo service nginx start
sleep 15

# Send good and bad events
Expand Down
4 changes: 4 additions & 0 deletions provisioning/resources/configs/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@
without /control-plane
}
}

*:3000 {
root /home/ubuntu/snowplow/ui
}
10 changes: 0 additions & 10 deletions provisioning/resources/configs/snowplow-mini.conf

This file was deleted.

3 changes: 0 additions & 3 deletions provisioning/resources/init/nginx_passenger

This file was deleted.

16 changes: 0 additions & 16 deletions provisioning/roles/sp_mini_3_setup_apps/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,22 +169,6 @@
dest: "/opt/kibana"
state: link

- name: Install nginx
become: yes
apt:
name: "nginx"
state: present
update_cache: yes
cache_valid_time: 3600

- name: Install apache2-dev
become: yes
apt:
name: "apache2-dev"
state: present
update_cache: yes
cache_valid_time: 3600

- name: Install Caddy
become: yes
shell: "curl https://getcaddy.com | bash"
Expand Down
13 changes: 0 additions & 13 deletions provisioning/roles/sp_mini_5_copy_ui_folders/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,3 @@
src: "{{playbook_dir}}/resources/ui"
dest: "{{main_dir}}"
recursive: yes

- name: Delete default nginx config
become: yes
file:
path: "/etc/nginx/sites-enabled/default"
state: absent

- name: Copy snowplow-mini.conf under nginx config dir
become: yes
copy:
remote_src: true
src: "{{configs_dir}}/snowplow-mini.conf"
dest: "/etc/nginx/conf.d"
3 changes: 0 additions & 3 deletions provisioning/roles/sp_mini_6_setup_init/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
- snowplow_elasticsearch_loader_good
- snowplow_elasticsearch_loader_bad
- iglu_server_0.2.0
- nginx_passenger
- caddy_init
- nsqd_init
- nsqlookupd_init
Expand All @@ -32,8 +31,6 @@
- snowplow_elasticsearch_loader_good
- snowplow_elasticsearch_loader_bad
- iglu_server_0.2.0
- nginx_passenger
- nginx
- elasticsearch
- caddy_init
- nsqd_init
Expand Down

0 comments on commit a96533e

Please sign in to comment.