mirror of
https://github.com/sbrow/nix.git
synced 2026-02-27 21:31:45 -05:00
feat: Updated templates.
This commit is contained in:
34
templates/default/Caddyfile
Normal file
34
templates/default/Caddyfile
Normal file
@@ -0,0 +1,34 @@
|
||||
(cors) {
|
||||
@origin header Origin {args[0]}
|
||||
header @origin Access-Control-Allow-Origin "{args[0]}"
|
||||
header @origin Access-Control-Allow-Methods "OPTIONS,HEAD,GET,POST,PUT,PATCH,DELETE"
|
||||
}
|
||||
|
||||
wp.test {
|
||||
root * .
|
||||
|
||||
encode zstd gzip
|
||||
file_server
|
||||
php_fastcgi 127.0.0.1:9009
|
||||
|
||||
tls internal
|
||||
}
|
||||
|
||||
laravel.test {
|
||||
# import cors laravel.test
|
||||
|
||||
respond /caddy/live OK
|
||||
|
||||
root * ./public
|
||||
|
||||
try_files {path} page-cache/{path}.html page-cache/{path}.json page-cache/{path}.xml
|
||||
|
||||
encode zstd gzip
|
||||
file_server
|
||||
php_fastcgi 127.0.0.1:9009
|
||||
|
||||
# Uncomment for Laravel Octane
|
||||
# reverse_proxy :8000
|
||||
|
||||
tls internal
|
||||
}
|
||||
Reference in New Issue
Block a user