|
56 | 56 | {% from 'http/modules.j2' import autoindex with context %}
|
57 | 57 | {{ autoindex(item['config']['autoindex']) }}
|
58 | 58 | {%- endif %}
|
| 59 | +{% if item['config']['gunzip'] is defined %} |
| 60 | +{% from 'http/modules.j2' import gunzip with context %} |
| 61 | +{{ gunzip(item['config']['gunzip']) }} |
| 62 | +{%- endif %} |
59 | 63 | {% if item['config']['gzip'] is defined %}
|
60 | 64 | {% from 'http/modules.j2' import gzip with context %}
|
61 | 65 | {{ gzip(item['config']['gzip']) }}
|
|
84 | 88 | {% from 'http/modules.j2' import map with context %}
|
85 | 89 | {{ map(item['config']['map']) }}
|
86 | 90 | {%- endif %}
|
| 91 | +{% if item['config']['mirror'] is defined %} |
| 92 | +{% from 'http/modules.j2' import mirror with context %} |
| 93 | +{{ mirror(item['config']['mirror']) }} |
| 94 | +{%- endif %} |
87 | 95 | {% if item['config']['realip'] is defined %}
|
88 | 96 | {% from 'http/modules.j2' import realip with context %}
|
89 | 97 | {{ realip(item['config']['realip']) }}
|
@@ -186,6 +194,12 @@ server {
|
186 | 194 | {{ autoindex(server['autoindex']) }}
|
187 | 195 | {%- endfilter %}
|
188 | 196 | {% endif %}
|
| 197 | +{% if server['gunzip'] is defined %} |
| 198 | +{% from 'http/modules.j2' import gunzip with context %} |
| 199 | +{% filter indent(4) %} |
| 200 | + {{ gunzip(server['gunzip']) }} |
| 201 | +{%- endfilter %} |
| 202 | +{% endif %} |
189 | 203 | {% if server['gzip'] is defined %}
|
190 | 204 | {% from 'http/modules.j2' import gzip with context %}
|
191 | 205 | {% filter indent(4) %}
|
@@ -222,6 +236,12 @@ server {
|
222 | 236 | {{ log(server['log']) }}
|
223 | 237 | {%- endfilter %}
|
224 | 238 | {% endif %}
|
| 239 | +{% if server['mirror'] is defined %} |
| 240 | +{% from 'http/modules.j2' import mirror with context %} |
| 241 | +{% filter indent(4) %} |
| 242 | + {{ mirror(server['mirror']) }} |
| 243 | +{%- endfilter %} |
| 244 | +{% endif %} |
225 | 245 | {% if server['realip'] is defined %}
|
226 | 246 | {% from 'http/modules.j2' import realip with context %}
|
227 | 247 | {% filter indent(4) %}
|
@@ -322,6 +342,12 @@ server {
|
322 | 342 | {{ autoindex(location['autoindex']) }}
|
323 | 343 | {%- endfilter %}
|
324 | 344 | {% endif %}
|
| 345 | +{% if location['gunzip'] is defined %} |
| 346 | +{% from 'http/modules.j2' import gunzip with context %} |
| 347 | +{% filter indent(8) %} |
| 348 | + {{ gunzip(location['gunzip']) }} |
| 349 | +{%- endfilter %} |
| 350 | +{% endif %} |
325 | 351 | {% if location['gzip'] is defined %}
|
326 | 352 | {% from 'http/modules.j2' import gzip with context %}
|
327 | 353 | {% filter indent(8) %}
|
@@ -358,6 +384,12 @@ server {
|
358 | 384 | {{ log(location['log']) }}
|
359 | 385 | {%- endfilter %}
|
360 | 386 | {% endif %}
|
| 387 | +{% if location['mirror'] is defined %} |
| 388 | +{% from 'http/modules.j2' import mirror with context %} |
| 389 | +{% filter indent(8) %} |
| 390 | + {{ mirror(location['mirror']) }} |
| 391 | +{%- endfilter %} |
| 392 | +{% endif %} |
361 | 393 | {% if location['realip'] is defined %}
|
362 | 394 | {% from 'http/modules.j2' import realip with context %}
|
363 | 395 | {% filter indent(8) %}
|
|
0 commit comments