brary/roles/smartgears/smartgears-nginx-frontend: Optionally expose the gcube logs via http.

d4science-ghn-cluster: Expose the gcube logs on the dataminer servers.
This commit is contained in:
Andrea Dell'Amico 2017-07-20 13:49:50 +02:00
parent c305b4b60a
commit 2c859a7f49
2 changed files with 17 additions and 0 deletions

View File

@ -7,3 +7,4 @@ smartgears_install_generic_virthost: True
smartgears_nginx_cors_enabled: False
nginx_cors_acl_origin: ''
data_transfer_service_install: False
smartgears_nginx_expose_tomcat_logs: False

View File

@ -93,6 +93,15 @@ server {
proxy_pass http://localhost:8787/;
}
{% endif %}
{% if smartgears_nginx_expose_tomcat_logs %}
location /gcube-logs/ {
alias {{ smartgears_instance_path }}/logs/;
autoindex on;
autoindex_localtime on;
}
{% endif %}
{% else %}
location / {
{% if smartgears_nginx_cors_enabled %}
@ -198,5 +207,12 @@ server {
}
{% endif %}
{% if smartgears_nginx_expose_tomcat_logs %}
location /gcube-logs/ {
alias {{ smartgears_instance_path }}/logs;
autoindex on;
autoindex_localtime on;
}
{% endif %}
}
{% endif %}