-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCaddyfile
109 lines (96 loc) · 4.05 KB
/
Caddyfile
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
http://www.minazuki.cn https://www.minazuki.cn {
tls /etc/letsencrypt/live/www.minazuki.cn/cert.pem /etc/letsencrypt/live/www.minazuki.cn/privkey.pem
gzip
proxy / http://127.0.0.1:8080 {
header_upstream Host {host}
header_upstream X-Real-IP {remote}
header_upstream X-Forwarded-For {remote}
header_upstream X-Forwarded-Proto {scheme}
}
}
0.0.0.0:8080
root netlify_static
errors stdout
log stdout
rewrite / {
r ^/article/(.*)/.*$
to /article/{1}.html
}
redir "/index.html" "/" 302
redir "/blog" "/" 302
redir "/blog/" "/" 302
redir "/kb/serialization-in-c#.html" "/article/Serialization-in-C.html" 302
redir "/extremeoptimizations" "/extremeoptimizations/index.html" 302
redir "/extremeoptimizations/" "/extremeoptimizations/index.html" 302
redir "/feed/rss2/atom.xml" "/atom.xml" 302
redir "/feed/rss2/" "/atom.xml" 302
redir "/feed/rss2" "/atom.xml" 302
redir "/feed/" "/atom.xml" 302
redir "/feed" "/atom.xml" 302
redir "/feedburner.xml" "/atom.xml" 302
redir "/articles/cocoa-objectivec-reference.html" "/articles/cocoa-reference.html" 302
redir "/forum_sumatra" "https://forum.sumatrapdfreader.org/" 302
redir "/google6dba371684d43cd6.html" "/static/google6dba371684d43cd6.html" 302
redir "/software/15minutes/index.html" "/software/15minutes.html" 302
redir "/software/15minutes/" "/software/15minutes.html" 302
redir "/software/fofou" "/software/fofou/index.html" 302
redir "/software/dbhero" "/software/dbhero/index.html" 302
redir "/software/patheditor" "/software/patheditor/for-windows.html" 302
redir "/software/patheditor/" "/software/patheditor/for-windows.html" 302
redir "/software/scdiff/" "/software/scdiff.html" 302
redir "/software/scdiff/index.html" "/software/scdiff.html" 302
redir "/software/sumatra" "https://www.sumatrapdfreader.org/free-pdf-reader.html" 302
redir "/software/sumatrapdf" "https://www.sumatrapdfreader.org/free-pdf-reader.html" 302
redir "/software/sumatrapdf/" "https://www.sumatrapdfreader.org/free-pdf-reader.html" 302
redir "/software/sumatrapdf/index.html" "https://www.sumatrapdfreader.org/free-pdf-reader.html" 302
redir "/software/sumatrapdf/download.html" "https://www.sumatrapdfreader.org/download-free-pdf-viewer.html" 302
redir "/software/sumatrapdf/prerelase.html" "https://www.sumatrapdfreader.org/prerelease.html" 302
redir "/free-pdf-reader.html" "https://www.sumatrapdfreader.org/free-pdf-reader.html" 302
redir "/software/volante" "/software/volante/database.html" 302
redir "/software/volante/" "/software/volante/database.html" 302
redir "/software/volante/index.html" "/software/volante/database.html" 302
redir "/software/fotofi" "/software/fotofi/free-stock-photos.html" 302
redir "/software/fotofi/" "/software/fotofi/free-stock-photos.html" 302
redir "/software/fotofi/index.html" "/software/fotofi/free-stock-photos.html" 302
redir "/software/fast-file-finder-for-windows" "/software/fast-file-finder-for-windows/" 302
redir "/software/fast-file-finder-for-windows/index.html" "/software/fast-file-finder-for-windows/" 302
redir "/static/software.html" "/software/index.html" 302
redir "/static/krzysztof.html" "/resume.html" 302
redir "/static/resume.html" "/resume.html" 302
rewrite /favicon.ico {
to /static/favicon.ico
}
rewrite "/software/sumatrapdf" {
regexp (.*)
to https://www.sumatrapdfreader.org/{1}
}
redir "/articles/index.html" "/documents.html" 302
redir "/static/documents.html" "/documents.html" 302
redir "/software/index.html" "/software/" 302
rewrite /articles/go-cookbook.html {
to /book/go-cookbook.html
}
rewrite /articles/go-cookbook.html {
to /book/go-cookbook.html
}
rewrite /tag/ss {
to /article/archives-by-tag-ss.html
}
rewrite /tag/Important {
to /article/archives-by-tag-important.html
}
rewrite /tag/2019.10 {
to /article/archives-by-tag-2019.10.html
}
rewrite /tag/youdao {
to /article/archives-by-tag-youdao.html
}
rewrite /tag/go {
to /article/archives-by-tag-go.html
}
rewrite /tag/notion {
to /article/archives-by-tag-notion.html
}
rewrite /tools/generate-unique-id {
to /tools/generate-unique-id.html
}