blob: 86ce98c0355324ac8f2283318f8d6d322aad220d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
{% for item in {{ ansible_hostname }}.static %}
"{{ item }}" {
tls "{{ email }}"
gzip
log "{{ item }}_access.log" {
rotate_size 1
rotate_keep 10
}
errors "{{ item }}_error.log" {
rotate_size 1
rotate_keep 10
}
}
{% endfor %}
{% for item in {{ ansible_hostname }}.redir %}
"{{ item.1 }}" {
tls "{{ email }}"
gzip
log "{{ item.1 }}_access.log" {
rotate_size 1
rotate_keep 10
}
errors "{{ item.1 }}_error.log" {
rotate_size 1
rotate_keep 10
}
redir https://"{{ item.2 }}"{uri}
}
{% if outdoor is defined %}
{% for item in public.static %}
"{{ item }}" {
tls "{{ email }}"
gzip
log "{{ item }}_access.log" {
rotate_size 1
rotate_keep 10
}
errors "{{ item }}_error.log" {
rotate_size 1
rotate_keep 10
}
}
{% endfor %}
{% for item in public.redir %}
"{{ item.1 }}" {
tls "{{ email }}"
gzip
log "{{ item.1 }}_access.log" {
rotate_size 1
rotate_keep 10
}
errors "{{ item.1 }}_error.log" {
rotate_size 1
rotate_keep 10
}
redir https://"{{ item.2 }}"{uri}
}
{% endfor %}
{% for item in public.reverse %}
"{{ item }}" {
tls "{{ email }}"
gzip
log "{{ item }}_access.log" {
rotate_size 1
rotate_keep 10
}
errors "{{ item }}_error.log" {
rotate_size 1
rotate_keep 10
}
proxy / https://"{{ backendhost }}":"{{ backendport }}" {
transparent
insecure_skip_verify
max_fails 60
}
}
{% endfor %}
{% endif %}
|