library/roles/smartgears/smartgears-nginx-frontend/templates/dataminer1-d-d4s.d4science.org-virtualhost.j2: virtualhost for the new dataminer.

This commit is contained in:
Andrea Dell'Amico 2016-09-09 13:34:06 +02:00
parent 18bbc85a22
commit df3d8ab340
1 changed files with 16 additions and 5 deletions

View File

@ -51,15 +51,26 @@ server {
proxy_connect_timeout {{ nginx_proxy_connect_timeout }}; proxy_connect_timeout {{ nginx_proxy_connect_timeout }};
proxy_read_timeout {{ nginx_proxy_read_timeout }}; proxy_read_timeout {{ nginx_proxy_read_timeout }};
proxy_send_timeout {{ nginx_proxy_send_timeout }}; proxy_send_timeout {{ nginx_proxy_send_timeout }};
{% for instance in tomcat_m_instances %}
{% for context in instance.app_contexts %} {% if r_connector_install %}
location /auth-sign-in {
rewrite ^/auth-sign-in http://{{ item.servername }}/r-connector/gcube/service/disconnect;
}
{% endif %}
{% for instance in tomcat_m_instances %}
{% for context in instance.app_contexts %}
location /{{ context }} { location /{{ context }} {
proxy_pass http://localhost:{{ item.http_port }}/{{ context }}; proxy_pass http://localhost:{{ item.http_port }}/{{ context }};
} }
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}
location {{ dataminer_52north_webapp_context }} { location {{ dataminer_52north_webapp_context }} {
proxy_pass http://localhost:{{ item.http_port }}{{ dataminer_52north_webapp_context }}; proxy_pass http://localhost:{{ item.http_port }}{{ dataminer_52north_webapp_context }};
} }
{% if rstudio_install_server %}
location / {
proxy_pass http://localhost:8787/;
}
{% endif %}
} }