-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for pretix maintenance mode, using variable.
- Loading branch information
1 parent
e9aacfc
commit 7abdb76
Showing
5 changed files
with
118 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# {{ ansible_managed }} | ||
|
||
server { | ||
listen 443 ssl http2; | ||
listen [::]:443 ssl http2; | ||
server_name ~^(pretix|tickets)\.{{ canonical_hostname }}; | ||
|
||
ssl_certificate /etc/letsencrypt/live/pretix.{{ canonical_hostname }}/fullchain.pem; | ||
ssl_certificate_key /etc/letsencrypt/live/pretix.{{ canonical_hostname }}/privkey.pem; | ||
ssl_trusted_certificate /etc/letsencrypt/live/pretix.{{ canonical_hostname }}/chain.pem; | ||
|
||
include includes/block-cert-validation-path.conf; | ||
add_header Referrer-Policy same-origin; | ||
add_header X-XSS-Protection "1; mode=block"; | ||
add_header X-Content-Type-Options "nosniff"; | ||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains"; | ||
# Security header file not included because frames | ||
|
||
root /var/www/pretix-maintenance; | ||
index pretix-maintenance.html; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Pretix Maintenance</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
background-color: #f4f4f9; | ||
text-align: center; | ||
padding: 50px; | ||
} | ||
header { | ||
margin-bottom: 50px; | ||
} | ||
img.banner { | ||
max-width: 600px; | ||
height: auto; | ||
} | ||
h1 { | ||
color: #333; | ||
font-size: 2.5em; | ||
margin-top: 30px; | ||
} | ||
p { | ||
color: #666; | ||
font-size: 1.2em; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<header> | ||
<img class="banner" src="https://public.svsticky.nl/logos/logo_outline_kleur.svg" alt="Logo"> | ||
</header> | ||
|
||
<h1>Pretix is currently under maintenance</h1> | ||
<p>Purchasing tickets is currently not possible.</p> | ||
<p>Het kopen van tickets is op dit moment niet mogelijk.</p> | ||
</body> | ||
</html> |