Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
yoho-ansible-roles
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
chunhua.zhang
6 years ago
Commit
4605a09a6c60ef46d748fab59504d95f58f84671
1 parent
d2899a29
UFO
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
roles/openresty/templates/nginx.conf.j2
roles/openresty/templates/nginx.conf.j2
View file @
4605a09
...
...
@@ -191,9 +191,17 @@ http
#ufo-gateway
upstream ufogateway {
{% for i in groups['java-ufo-fore'] %}
server {{ i }}:8080 max_fails=5 fail_timeout=3s;
{% endfor %}
{% if upstream_az == 'aws' %}
server 172.31.70.86:8080 max_fails=5 fail_timeout=3s;
{% elif upstream_az == 'az1'%}
server 10.66.70.77:8080 max_fails=5 fail_timeout=3s;
server 10.66.70.63:8080 max_fails=5 fail_timeout=3s;
server 10.66.70.84:8080 max_fails=5 fail_timeout=3s;
{% else %}
{% for i in groups['java-ufo-fore'] %}
server {{ i }}:8080 max_fails=5 fail_timeout=3s;
{% endfor %}
{% endif %}
keepalive 32;
}
...
...
Please
register
or
login
to post a comment