parent
bf1b9950cb
commit
710b3ad53b
|
@ -62,6 +62,7 @@ You can see many examples in: [tests/test.yml](tests/test.yml).
|
||||||
- `more`: (O) Add more custom infos.
|
- `more`: (O) Add more custom infos.
|
||||||
- `upstream_params`: (O) Add upstream params (useful when you want to pass variables to PHP)
|
- `upstream_params`: (O) Add upstream params (useful when you want to pass variables to PHP)
|
||||||
- `override_try_files`: (O) overrides default try\_files defined in template
|
- `override_try_files`: (O) overrides default try\_files defined in template
|
||||||
|
- `manage_local_content`: (O) Boolean. Set to false if you don't want to manage local content (images, css...). This option is useless if you use proxy `template`
|
||||||
|
|
||||||
(O) : Optional
|
(O) : Optional
|
||||||
(M) : Mandatory
|
(M) : Mandatory
|
||||||
|
|
|
@ -44,6 +44,7 @@ server {
|
||||||
}
|
}
|
||||||
|
|
||||||
{% block template_local_content %}
|
{% block template_local_content %}
|
||||||
|
{% if manage_local_content is defined and not manage_local_content %}
|
||||||
location = /favicon.ico {
|
location = /favicon.ico {
|
||||||
expires 30d;
|
expires 30d;
|
||||||
access_log off;
|
access_log off;
|
||||||
|
@ -54,6 +55,7 @@ server {
|
||||||
expires 30d;
|
expires 30d;
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
}
|
}
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% if __location is iterable and __location | length > 0 %}
|
{% if __location is iterable and __location | length > 0 %}
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
- 'test2-alias.local'
|
- 'test2-alias.local'
|
||||||
template: '_base'
|
template: '_base'
|
||||||
override_try_files: '$uri $uri index.htm index.html'
|
override_try_files: '$uri $uri index.htm index.html'
|
||||||
|
manage_local_content: false
|
||||||
more:
|
more:
|
||||||
- 'autoindex off;'
|
- 'autoindex off;'
|
||||||
location:
|
location:
|
||||||
|
|
Loading…
Reference in New Issue