forked from infra/ansible
pretalx: fix static directory
This commit is contained in:
parent
d5d762f73e
commit
02496ae591
@ -13,6 +13,7 @@
|
|||||||
- /opt/pretalx
|
- /opt/pretalx
|
||||||
- /opt/pretalx/data
|
- /opt/pretalx/data
|
||||||
- /opt/pretalx/data/media
|
- /opt/pretalx/data/media
|
||||||
|
- /opt/pretalx/static
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
apt:
|
apt:
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
[filesystem]
|
[filesystem]
|
||||||
data = /opt/pretalx/data
|
data = /opt/pretalx/data
|
||||||
|
static = /opt/pretalx/static
|
||||||
|
|
||||||
[site]
|
[site]
|
||||||
debug = False
|
debug = False
|
||||||
|
@ -40,7 +40,7 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /static/ {
|
location /static/ {
|
||||||
alias /opt/pretalx/venv/lib/python3.11/site-packages/pretalx/static.dist/;
|
alias /opt/pretalx/static/;
|
||||||
access_log off;
|
access_log off;
|
||||||
expires 365d;
|
expires 365d;
|
||||||
add_header Cache-Control "public";
|
add_header Cache-Control "public";
|
||||||
|
Loading…
Reference in New Issue
Block a user