Skip to content

Commit e548cfe

Browse files
committed
wip
1 parent e5ab0c7 commit e548cfe

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ jobs:
3535
--health-retries=5
3636
web:
3737
image: dunglas/frankenphp:1.9-php${{ matrix.php }}
38-
ports:
39-
- "8100:80"
38+
ports: [ 8100:80 ]
39+
volumes:
40+
- ./wordpress:/var/www/html
41+
- ./Caddyfile:/etc/frankenphp/Caddyfile
4042

4143
env:
4244
WP_VERSION: ${{ matrix.wordpress }}

Caddyfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
local_certs
3+
auto_https disable_redirects
4+
5+
frankenphp {
6+
#worker /path/to/your/worker.php
7+
}
8+
9+
order php_server before file_server
10+
order php before file_server
11+
order request_header before rewrite
12+
}
13+
14+
:80 {
15+
@static {
16+
file
17+
path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff
18+
}
19+
20+
root * /var/www/html/
21+
encode br zstd gzip
22+
23+
php_server
24+
}

0 commit comments

Comments
 (0)