Merge branch 'release/0.1.0' into main

main v0.1.0
naicoi 2023-04-02 17:47:13 +07:00
commit 16d96061db
Signed by: naicoi
GPG Key ID: 7142E472DF7CF7D9
4 changed files with 52 additions and 0 deletions

21
.woodpecker/build.yml Normal file
View File

@ -0,0 +1,21 @@
matrix:
PHP_VERSION:
- 7.4
- 8.0
- 8.1
- 8.2
pipeline:
image-build:
image: plugins/docker
settings:
registry: techio.dev
repo: techio.dev/${CI_REPO}
tags:
- ${PHP_VERSION}
build_args:
- PHP_VERSION=${PHP_VERSION}
username: deploy
password:
from_secret: deploy_password
when:
event: tag

17
Caddyfile Normal file
View File

@ -0,0 +1,17 @@
{
supervisor {
php-fpm {
dir /var/www/html
}
}
}
:80 {
root * /var/www/html
php_fastcgi 127.0.0.1:9000
encode gzip
file_server
rewrite {
if {path} not_match ^\/wp-admin
to {path} {path}/ /index.php?_url={uri}
}
}

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM caddy:builder-alpine as caddy
RUN xcaddy build --with github.com/baldinof/caddy-supervisor@v0.6.0
ARG PHP_VERSION=7.4
FROM php:${PHP_VERSION}-fpm-alpine
COPY --from=caddy /usr/bin/caddy /usr/bin
COPY Caddyfile /usr/local/etc/caddy/Caddyfile
COPY php.ini /usr/local/etc/php/conf.d
EXPOSE 80
CMD caddy run --config /usr/local/etc/caddy/Caddyfile

5
php.ini Normal file
View File

@ -0,0 +1,5 @@
upload_max_filesize = 1024M
post_max_size = 1024M
max_execution_time = 3600
memory_limit = -1
max_input_vars = 3000