bundlewrap/data/nginx/files/extras/voc.pretalx/pretalx
Franziska Kunsmann 352b028e58
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
voc.pretalx: update pretalx to 2.3.0, broadcast_tools to rc3 branch
2021-12-25 09:52:21 +01:00

36 lines
1.2 KiB
Text

location / {
proxy_pass http://127.0.0.1:22060/;
proxy_http_version 1.1;
proxy_set_header Host pretalx.c3voc.de;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto HTTPS;
proxy_set_header X-Forwarded-Host pretalx.c3voc.de;
proxy_buffering off;
# https://github.com/pretalx/pretalx-media-ccc-de/issues/1
proxy_hide_header content-security-policy;
#add_header content-security-policy "form-action 'self'; default-src 'self'; img-src 'self' data: https://www.gravatar.com; style-src 'self' 'unsafe-inline'; script-src 'self'; base-uri 'none'; frame-src https://media.ccc.de 'self'";
}
location /media/ {
alias /opt/pretalx/data/media/;
add_header Content-Disposition 'attachment; filename="$1"';
expires 7d;
access_log off;
}
location /static/ {
alias /opt/pretalx/static/;
access_log off;
expires 365d;
add_header Cache-Control "public";
}
location /Uluagh8Oichai4Uk/ {
alias /var/www/pretalx/;
access_log off;
expires 365d;
add_header Cache-Control "public";
autoindex on;
}