Skip to content

use multiport navi #704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ansible/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ metabase_port: 3000
mongo_storage_size_gb: 50

# navi
navi_extra_ports: [11211,15672,25672,27017,29015,3000,3001,3306,4000,4607,5000,5200,5400,5432,6379,6969,8000,8080,9000,9292,9300]
navi_host_address: navi
navi_http_port: 3567
navi_mongo_hosts: "mongo"
Expand Down
3 changes: 2 additions & 1 deletion ansible/group_vars/alpha-navi-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: navi-proxy

container_image: "nginx"
container_tag: "1.10"
hosted_ports: ["80", "443"]

hosted_ports: "{{ navi_extra_ports + [80, 443] }}"

service_type: "LoadBalancer"
container_run_args: ''
Expand Down
3 changes: 3 additions & 0 deletions ansible/roles/content-domain-proxy/templates/navi.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ data:

server {
listen 80;
{% for port in navi_extra_ports %}
listen {{ port }};
{% endfor %}
client_max_body_size 200m;
server_name {{ user_content_domain }};
access_log /var/log/nginx/navi.access.log;
Expand Down