Skip to content
Commits on Source (7)
...@@ -10,7 +10,7 @@ networks: ...@@ -10,7 +10,7 @@ networks:
- subnet: 10.0.${SUBNET}.0/24 - subnet: 10.0.${SUBNET}.0/24
services: services:
db: db:
image: mysql:${MYSQL_VERSION:-5.7} image: mariadb:${MYSQL_VERSION:-10.5}
volumes: volumes:
- ./db/mysql/runtime:/var/lib/mysql - ./db/mysql/runtime:/var/lib/mysql
environment: environment:
......
...@@ -38,10 +38,20 @@ http { ...@@ -38,10 +38,20 @@ http {
root /var/www/html; root /var/www/html;
index index.php; index index.php;
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ { location ~* \.(txt|xml|js)$ {
access_log off; expires 1y;
log_not_found off; }
expires 30d;
location ~* \.(css)$ {
expires 1y;
}
location ~* \.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|woff2|svg)$ {
expires 1y;
}
location ~* \.(jpg|jpeg|png|gif|swf|webp)$ {
expires 1y;
} }
open_file_cache max=2000 inactive=20s; open_file_cache max=2000 inactive=20s;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
source /etc/environment source /etc/environment
WORDPRESS_VERSION=5.9-fpm WORDPRESS_VERSION=6.0-fpm
MYSQL_ROOT_PASSWORD=`tr -dc A-Za-z0-9_ < /dev/urandom | head -c 20 | xargs` MYSQL_ROOT_PASSWORD=`tr -dc A-Za-z0-9_ < /dev/urandom | head -c 20 | xargs`
var=$(for folder in `ls /data/domains`; do cat /data/domains/$folder/.env | grep SUBNET | cut -d"=" -f2; done | sort | tail -n1) var=$(for folder in `ls /data/domains`; do cat /data/domains/$folder/.env | grep SUBNET | cut -d"=" -f2; done | sort | tail -n1)
...@@ -22,4 +22,4 @@ echo "SUBNET=${SUBNET}" >> .env ...@@ -22,4 +22,4 @@ echo "SUBNET=${SUBNET}" >> .env
echo "WORDPRESS_VERSION=${WORDPRESS_VERSION}" >> .env echo "WORDPRESS_VERSION=${WORDPRESS_VERSION}" >> .env
echo "MYSQL_VERSION=5.7" >> .env echo "MYSQL_VERSION=10.5" >> .env