pretalx: fix static directory

This commit is contained in:
Markus 2023-11-07 16:50:10 +01:00
parent d5d762f73e
commit 02496ae591
3 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,7 @@
- /opt/pretalx
- /opt/pretalx/data
- /opt/pretalx/data/media
- /opt/pretalx/static
- name: Install dependencies
apt:

View File

@ -1,5 +1,6 @@
[filesystem]
data = /opt/pretalx/data
static = /opt/pretalx/static
[site]
debug = False

View File

@ -40,7 +40,7 @@ server {
}
location /static/ {
alias /opt/pretalx/venv/lib/python3.11/site-packages/pretalx/static.dist/;
alias /opt/pretalx/static/;
access_log off;
expires 365d;
add_header Cache-Control "public";