43 lines
907 B
YAML
43 lines
907 B
YAML
---
|
|
|
|
- name: Converge
|
|
hosts: all
|
|
gather_facts: false
|
|
|
|
vars:
|
|
nginx_settings:
|
|
server_tokens: false
|
|
gzip: true
|
|
ssl_protocols:
|
|
- TLSv1.2
|
|
- TLSv1.3
|
|
load_balancers:
|
|
http:
|
|
- upstream:
|
|
name: searxng
|
|
servers:
|
|
- 192.168.0.10:8888
|
|
server:
|
|
listen_port: 80
|
|
names:
|
|
- searxng.cuqmbr.xyz
|
|
statements:
|
|
- proxy_set_header Host $http_host
|
|
# statics:
|
|
# - root: /var/www/website
|
|
# index: index.html
|
|
# listen_port: 8080
|
|
# names:
|
|
# - static.cuqmbr.xyz
|
|
# statements:
|
|
# - proxy_set_header Host $http_host
|
|
|
|
pre_tasks:
|
|
- name: Update apt cache.
|
|
ansible.builtin.apt:
|
|
update_cache: true
|
|
cache_valid_time: 86400
|
|
|
|
roles:
|
|
- nginx
|