-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
89 lines (67 loc) · 2.82 KB
/
nginx.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
server_tokens off;
server {
server_name rzl.so;
server_name www.rzl.so;
server_name www.raumzeitlabor.de;
return 301 $scheme://raumzeitlabor.de$request_uri;
}
server {
server_name was.geht.im.rzl.so;
return 301 $scheme://raumzeitlabor.de/events;
}
server {
server_name ~^pr-(?<pull>\d+)\.rzl-homepage\.raumzeitlabor\.org$;
root /data/preview/pr-$pull;
index index.html;
charset utf-8;
access_log off;
error_log off;
error_page 404 /404.html;
add_header X-Robots-Tag "noindex";
add_header Content-Security-Policy "default-src 'self'; script-src 'self' gdata.youtube.com content.googleapis.com api.tumblr.com 'sha256-_cv7CZwBEkKftKMMeNi1bxlWa40SEzobubU4iiFYCYo='; connect-src 'self' s.rzl.so status.raumzeitlabor.de; style-src 'self' 'unsafe-inline'; img-src 'self' data: *.tile.openstreetmap.org i.ytimg.com *.media.tumblr.com *.edgecastcdn.net; frame-src https://www.youtube.com/embed/ https://www.youtube-nocookie.com/embed/";
location ~ /\. {
deny all;
}
location /events/ical {
proxy_pass https://p.fruux.com:443/c/a3298259302/81bae0fb-601c-47ee-ba92-460866466d90.ics$is_args$args;
}
resolver 8.8.4.4;
location /events {
if ($request_uri !~ (index\.html|ical)($|\?)) {
return 301 /events/index.html;
}
}
rewrite ^/feed/?$ /feed.xml permanent;
rewrite ^/wiki/(.*?)$ https://wiki.raumzeitlabor.de/wiki/$1 permanent;
rewrite ^/kontakt/?$ /impressum/ permanent;
rewrite ^/anfahrt/?$ /kontakt/anfahrt/ permanent;
}
server {
listen 80;
root /data/prod;
index index.html;
server_name raumzeitlabor.de;
charset utf-8;
access_log /proc/self/fd/1;
error_log /proc/self/fd/2;
location = /favicon.ico { log_not_found off; access_log off; }
location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /404.html;
add_header Content-Security-Policy "default-src 'self'; script-src 'self' gdata.youtube.com content.googleapis.com api.tumblr.com; connect-src 'self' s.rzl.so status.raumzeitlabor.de; style-src 'self' 'unsafe-inline'; img-src 'self' data: *.tile.openstreetmap.org i.ytimg.com *.media.tumblr.com *.edgecastcdn.net; frame-src https://www.youtube.com/embed/ https://www.youtube-nocookie.com/embed/";
location ~ /\. {
deny all;
}
location /events/ical {
proxy_pass https://p.fruux.com:443/c/a3298259302/81bae0fb-601c-47ee-ba92-460866466d90.ics$is_args$args;
}
resolver 8.8.4.4;
location /events {
if ($request_uri !~ (index\.html|ical)($|\?)) {
return 301 /events/index.html;
}
}
rewrite ^/feed/?$ /feed.xml permanent;
rewrite ^/wiki/(.*?)$ https://wiki.raumzeitlabor.de/wiki/$1 permanent;
rewrite ^/kontakt/?$ /impressum/ permanent;
rewrite ^/anfahrt/?$ /kontakt/anfahrt/ permanent;
}