Add the nginx configuration

This commit is contained in:
Andrea Dell'Amico 2020-11-12 22:12:10 +01:00
parent 143b88202a
commit e86fe4b850
2 changed files with 23 additions and 0 deletions

View File

@ -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 }}'

View File

@ -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 }}