37 lines
698 B
Plaintext
37 lines
698 B
Plaintext
(app-redir) {
|
|
redir https://{args[0]}.zio.sh{uri} temporary
|
|
}
|
|
|
|
(cors) {
|
|
@origin header Origin {args.0}
|
|
header @origin Access-Control-Allow-Origin "{args.0}"
|
|
header @origin Access-Control-Request-Method GET
|
|
}
|
|
|
|
(homedir) {
|
|
@user_home path_regexp user ^/~([^/]+)(/.*)?$
|
|
handle @user_home {
|
|
redir /~{re.user.1} /~{re.user.1}/ permanent
|
|
root * {args.0}{re.user.1}/www
|
|
rewrite * {re.user.2}
|
|
file_server browse {
|
|
hide .[A-Za-z]*
|
|
}
|
|
}
|
|
}
|
|
|
|
(nobots) {
|
|
respond /robots.txt 200 {
|
|
body "User-agent: *
|
|
Disallow: /"
|
|
close
|
|
}
|
|
}
|
|
|
|
(tls-cf) {
|
|
tls {
|
|
dns cloudflare {args.0}
|
|
resolvers 1.1.1.1
|
|
}
|
|
}
|