Role that installs and configures nginx
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Andrea Dell'Amico 9b7cc5b11a
server_names_hash_bucket_size is now a variable.
1 month ago
defaults server_names_hash_bucket_size is now a variable. 1 month ago
files Import the old role. 4 years ago
handlers Import the old role. 4 years ago
meta Some cleanup 9 months ago
tasks Remove the usage of nginx_use_common_virthost 10 months ago
templates server_names_hash_bucket_size is now a variable. 1 month ago
tests Initial commit 4 years ago
.gitignore Initial commit 4 years ago
LICENSE Initial commit 4 years ago
README.md Import the old role. 4 years ago

README.md

Role Name

A role that installs and configures the nginx web server and proxy

Role Variables

There are a lot of variables. See the defaults/main.yml file for a complete list. Here an example of how to setup a virtualhost:

nginx_virthosts:
  - virthost_name: '{{ ansible_fqdn }}'
    listen: '{{ http_port }}'
    server_name: '{{ ansible_fqdn }}'
    server_aliases: ''
    index: index.html
    error_page: /path_to_error_page.html
    ssl_enabled: False
    ssl_only: False
    ssl_letsencrypt_certs: '{{ nginx_letsencrypt_managed }}'
    root: {{ nginx_webroot }}
    server_tokens: 'off'
    proxy_standard_setup: True
    proxy_additional_options:
      - 'proxy_cache_path /tmp/nginx_cache levels=1:2 keys_zone=cache:30m max_size=250m;'
    locations:
      - location: /
        target: http://localhost:{{ local_http_port }}

Dependencies

If basic ldap authentication is required: git+https@gitea-s2i2s.isti.cnr.it:ISTI-ansible-roles/ansible-role-ldap-client-config.git

License

EUPL-1.2

Author Information

Andrea DellAmico, andrea.dellamico@isti.cnr.it