26 lines
946 B
YAML
26 lines
946 B
YAML
---
|
|
- name: Configure nginx
|
|
ansible.builtin.import_role:
|
|
name: nginx_core.nginx_config
|
|
tags: nginx
|
|
vars:
|
|
nginx_config_http_template_enable: true
|
|
nginx_config_http_template:
|
|
- template_file: http/default.conf.j2
|
|
deployment_location: "/etc/nginx/conf.d/node-exp_{{ inventory_hostname }}.conf"
|
|
backup: false
|
|
config:
|
|
servers:
|
|
- core:
|
|
listen:
|
|
# Use IP address in Ansible facts. https://stackoverflow.com/q/39819378/9290
|
|
- address: "{{ default_interface_ipv4_address|default(ansible_default_ipv4.address) }}"
|
|
ssl: true
|
|
port: 4430
|
|
include:
|
|
- "/etc/nginx/acme_{{ inventory_hostname }}.conf"
|
|
locations:
|
|
- location: /
|
|
proxy:
|
|
pass: "http://127.0.0.1:8030"
|
|
http_version: 1.1 |