Add the nginx configuration

master
Andrea Dell'Amico 4 years ago
parent 143b88202a
commit e86fe4b850

@ -19,3 +19,8 @@ nexus_wrapper_conf_dir: '{{ nexus_webapp_dir }}/bin/jsw/conf'
nexus_wrapper_logdir: '/var/log/nexus-wrapper'
# MB
nexus_wrapper_diskcache_buffersize: 4096
# Nginx setup
nexus_nginx_virtualhost_name: '{{ ansible_fqdn }}'
nexus_nginx_virtualhost_serveraliases: ''
nginx_virthosts: '{{ maven_nginx_virthosts }}'

@ -1,2 +1,20 @@
---
nexus_user: nexus
setup_nginx: '{{ nexus_behind_nginx }}'
nginx_use_common_virthost: True
maven_nginx_virthosts:
- virthost_name: '{{ nexus_nginx_virtualhost_name }}'
listen: "{{ http_port | default('443') }}"
server_name: '{{ nexus_nginx_virtualhost_name }}'
serveraliases: '{{ nexus_nginx_virtualhost_serveraliases }}'
ssl_enabled: True
ssl_only: False
ssl_letsencrypt_certs: '{{ nginx_letsencrypt_managed }}'
root: '{{ nginx_webroot }}'
websockets: False
server_tokens: 'off'
proxy_standard_setup: True
locations:
- location: /
target: http://127.0.0.1:{{ nexus_service_port }}

Loading…
Cancel
Save