caddy (snippets): add app-redir snippet
This commit is contained in:
parent
ef4d41d315
commit
8d355454ef
1 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
(app-redir) {
|
||||
redir https://{args[0]}.zio.sh{uri} temporary
|
||||
}
|
||||
|
||||
(cors) {
|
||||
@origin header Origin {args.0}
|
||||
header @origin Access-Control-Allow-Origin "{args.0}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue