Skip to content

Commit

Permalink
Fix: Show maintenance page on 404
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasDeBruijn committed Dec 29, 2024
1 parent 3f70bc7 commit 7d6a9a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ansible/roles/pretix/templates/pretix_maintenance.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ server {
root /var/www/pretix-maintenance;
index pretix-maintenance.html;

error_page 404 =200 /pretix-maintenance.html;

location /control {
proxy_pass http://localhost:8345;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand Down

0 comments on commit 7d6a9a0

Please sign in to comment.