Merge pull request #295261 from SuperSandro2000/pretalx-media

nixos/pretalx: fix /media/ nginx location block

authored by Sandro and committed by GitHub 9edb990e b61903a0

+4 -4
+4 -4
nixos/modules/services/web-apps/pretalx.nix
··· 286 286 virtualHosts.${cfg.nginx.domain} = { 287 287 # https://docs.pretalx.org/administrator/installation.html#step-7-ssl 288 288 extraConfig = '' 289 - more_set_headers Referrer-Policy same-origin; 290 - more_set_headers X-Content-Type-Options nosniff; 289 + more_set_headers "Referrer-Policy: same-origin"; 290 + more_set_headers "X-Content-Type-Options: nosniff"; 291 291 ''; 292 292 locations = { 293 293 "/".proxyPass = "http://pretalx"; 294 294 "/media/" = { 295 - alias = "${cfg.settings.filesystem.data}/data/media/"; 295 + alias = "${cfg.settings.filesystem.data}/media/"; 296 296 extraConfig = '' 297 297 access_log off; 298 - more_set_headers Content-Disposition 'attachment; filename="$1"'; 298 + more_set_headers 'Content-Disposition: attachment; filename="$1"'; 299 299 expires 7d; 300 300 ''; 301 301 };