Skip to content

Commit

Permalink
use franken Dockerfile for develoment
Browse files Browse the repository at this point in the history
  • Loading branch information
rwhite27 committed Jul 30, 2024
1 parent b00072d commit 619ff0b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ service-account.json
/tools/*
/tools/php-cs-fixer/*
/tools/php-cs-fixer/vendor/*

/caddy
frankenphp
frankenphp-worker.php
13 changes: 13 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@ http://localhost {
# Enable compression (optional)
encode zstd br gzip

@options_method {
method OPTIONS
}

handle @options_method {
header Access-Control-Allow-Origin "*"
header Access-Control-Allow-Methods "GET, POST, OPTIONS, PUT, DELETE"
header Access-Control-Allow-Headers "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Public-Key,Authorization,X-Kanvas-App,X-Kanvas-Key,X-Kanvas-Location"
header Access-Control-Max-Age "1728000"
header Content-Type "text/plain charset=UTF-8"
respond "" 204
}

php_fastcgi /php-fpm
# Execute PHP files from the public/ directory and serve assets
php_server
Expand Down
2 changes: 1 addition & 1 deletion franken.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM dunglas/frankenphp as base
FROM dunglas/frankenphp

ENV SERVER_NAME="http://"

Expand Down

0 comments on commit 619ff0b

Please sign in to comment.