23 lines
751 B
Django/Jinja
23 lines
751 B
Django/Jinja
{% extends "base-nginx-server.j2" %}
|
|
|
|
{% block middle %}
|
|
location ~ ^/static/(.+)$ {
|
|
root /;
|
|
try_files {{state_dir}}/tenants/$host/static/$1
|
|
{{state_dir}}/tenants/$host/theme/static/$1
|
|
{{state_dir}}/$host/static/$1
|
|
{{state_dir}}/$host/theme/static/$1
|
|
{{state_dir}}/collectstatic/$1
|
|
=404;
|
|
}
|
|
|
|
location /static { alias {{state_dir}}/collectstatic/; }
|
|
location /qo { alias {{app_src_dir}}/wcs/qommon/static/; }
|
|
location /themes {
|
|
root /;
|
|
try_files {{state_dir}}/$host$uri
|
|
{{app_src_dir}}/data/themes/$uri
|
|
=404;
|
|
}
|
|
{% endblock %}
|