-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCaddyfile.example
More file actions
43 lines (37 loc) · 1.12 KB
/
Caddyfile.example
File metadata and controls
43 lines (37 loc) · 1.12 KB
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
freesmlauncher.org {
handle /feed {
reverse_proxy localhost:00000
encode gzip
}
handle /api/badges/telegram {
reverse_proxy localhost:00000
encode gzip
}
handle {
root * /home/github/website/dist
encode gzip
redir /telegram https://t.me/freesmteam
redir /discord https://discord.gg/6jjw4gjy4w
redir /reddit https://www.reddit.com/r/FreesmLauncher
redir /successful-login https://old.freesmlauncher.org/successful-login
try_files {path} /index.html
file_server {
hide .git
}
@cors_preflight method OPTIONS
header {
Cache-Control max-age=3600
Access-Control-Allow-Origin "{header.origin}"
Vary Origin
Access-Control-Expose-Headers "Authorization"
Access-Control-Allow-Credentials "true"
}
handle @cors_preflight {
header {
Access-Control-Allow-Methods "GET, POST, PUT, PATCH, DELETE"
Access-Control-Max-Age "3600"
}
respond "" 204
}
}
}