ansible-roles/smartgears/smartgears-nginx-frontend/defaults/main.yml

43 lines
1.6 KiB
YAML

---
setup_nginx: False
http_redirect_to_https: False
letsencrypt_acme_install: False
smartgears_install_generic_virthost: True
smartgears_install_common_nginx_virthualhost: False
#smartgears_nginx_serveraliases:
smartgears_nginx_cors_enabled: False
nginx_cors_acl_origin: ''
smartgears_tomcat_manager_exposed: False
smartgears_tomcat_manager_access_acls:
- { policy: 'allow', address: '0.0.0.0/0' }
# You can use smartgears_special_redirect to redirect whatever URL to another one, even changing the hostname (it must be an alias of the machine hostname if you want to maintain it local)
#smartgears_special_redirect:
# - { source_uri: '/', dest_host: 'hostname-alias', dest_url: 'service-url'}
smartgears_nginx_expose_tomcat_logs: False
smartgears_nginx_rw_html_root: False
smartgears_nginx_virtualhosts:
- virthost_name: '{{ smartgears_tomcat_servername }}'
smartgears_id: '{{ smartgears_instance_id }}'
#listen: '{{ http_port }}'
server_name: '{{ smartgears_tomcat_servername }}'
ssl_enabled: True
ssl_only: '{{ http_redirect_to_https }}'
ssl_letsencrypt_certs: '{{ nginx_letsencrypt_managed }}'
smartgears_over_ssl: False
smartgears_http_port: '{{ smartgears_http_port }}'
root: '{{ smartgears_web_document_root }}'
server_tokens: 'off'
index: index.html index.do
max_body: '{{ nginx_client_max_body_size }}'
user: '{{ smartgears_user }}'
proxy_standard_setup: True
# locations:
# - location: /yam
# other_opts:
# - 'try_files $uri $uri/ $uri.php$is_args$query_string'
# - location: ~ \.php$
# php_target: '{{ phpfpm_listen_host }}:{{ phpfpm_listen_port }}'