-
Notifications
You must be signed in to change notification settings - Fork 0
/
mustachebash.conf
61 lines (48 loc) · 1.25 KB
/
mustachebash.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
map $sent_http_content_type $expires {
default off;
text/html epoch;
application/json epoch;
text/css max;
application/javascript max;
~image/ max;
}
server {
listen 80 default_server;
listen [::]:80;
server_name mustachebash.com;
expires $expires;
root /static;
sendfile on;
tcp_nopush on;
error_page 404 = @not_found;
location / {
try_files maintenance =404;
}
location = / {
try_files /index.html =404;
}
# Needs to be available publicly for Apple Pay on Web
location = /.well-known/apple-developer-merchantid-domain-association {
allow all;
alias /etc/nginx/apple-developer-merchantid-domain-association;
}
# If the pathname contains a . character, look up the file literally.
location ~^/(.*(png|jpg|gif|css|js|svg)) {
try_files $uri =404;
}
location ~^/(privacy-policy|mytickets|info|gallery|san-diego|san-francisco)/?$ {
try_files /$1.html =404;
}
location @not_found {
return 404 'not found';
}
}
# Redirect www.
server {
listen 80;
listen [::]:80;
server_name www.mustachebash.com;
location / {
return 301 https://mustachebash.com$request_uri;
}
}