2
0
Fork 0

caddy (snippets): add app-redir snippet

main
Ducky 2023-08-13 15:50:38 +01:00
parent ef4d41d315
commit 8d355454ef
1 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,7 @@
(app-redir) {
redir https://{args[0]}.zio.sh{uri} temporary
}
(cors) { (cors) {
@origin header Origin {args.0} @origin header Origin {args.0}
header @origin Access-Control-Allow-Origin "{args.0}" header @origin Access-Control-Allow-Origin "{args.0}"