forked from ISTI-ansible-roles/ansible-roles
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:
parent
c305b4b60a
commit
2c859a7f49
|
@ -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
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue