commit b900f2749744a9bd7fd7c34203367a6cd8d29ff1
parent 90680a3a7deef50981e9700a6d316665fef116af
Author: MTRNord <MTRNord@users.noreply.github.com>
Date: Wed, 15 Oct 2025 08:58:23 +0200
meow
Signed-off-by: MTRNord <MTRNord@users.noreply.github.com>
Diffstat:
5 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/apps/talos_cluster/blog/docker/10-opcache.ini b/apps/talos_cluster/blog/docker/10-opcache.ini
@@ -6,11 +6,7 @@ opcache.jit=tracing
opcache.enable=1
opcache.enable_cli=0
-opcache.memory_consumption=1536
-opcache.interned_strings_buffer=100
-opcache.max_accelerated_files=75000
+opcache.memory_consumption=128
+opcache.interned_strings_buffer=8
+opcache.max_accelerated_files=4000
opcache.revalidate_freq=2
-opcache.validate_timestamps=0
-opcache.save_comments=1
-opcache.fast_shutdown=1
-opcache.huge_code_pages=0
diff --git a/apps/talos_cluster/blog/docker/php.ini b/apps/talos_cluster/blog/docker/php.ini
@@ -4,7 +4,15 @@ memory_limit = 256M
upload_max_filesize = 150M
max_execution_time = 350
date.timezone = Europe/Berlin
+error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR
display_errors = Off
+display_startup_errors = Off
+log_errors = On
+error_log = /dev/stderr
+log_errors_max_len = 1024
+ignore_repeated_errors = On
+ignore_repeated_source = Off
+html_errors = Off
post_max_size = 64M
zlib.output_compression = On
zlib.output_compression_level = 5
diff --git a/apps/talos_cluster/blog/docker/wordpress.conf b/apps/talos_cluster/blog/docker/wordpress.conf
@@ -49,7 +49,7 @@ server {
# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac), except for /.well-known/matrix
# Only match files or directories that start with a dot (hidden files), not all files containing a dot
- location ~ ^/(?!\.well-known/matrix)(\.[^/]+) {
+ location ~ ^/(?!\.well-known)(\.[^/]+) {
deny all;
}
@@ -81,7 +81,7 @@ server {
# Use cached or actual file if it exists, otherwise pass request to WordPress
location / {
- try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri $uri/ /index.php;
+ try_files /wp-content/cache/supercache/$http_host/$cache_uri/index-https.html $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
diff --git a/apps/talos_cluster/blog/docker/wp-config.php b/apps/talos_cluster/blog/docker/wp-config.php
@@ -1,4 +1,5 @@
<?php
+define( 'WPCACHEHOME', '/var/www/html/wordpress/wp-content/plugins/wp-super-cache/' );
define('WP_CACHE', true);
define( 'DB_NAME', '${DB_NAME}' );
define( 'DB_USER', '${DB_USER}' );
diff --git a/apps/talos_cluster/blog/mysql.yaml b/apps/talos_cluster/blog/mysql.yaml
@@ -50,8 +50,8 @@ spec:
memory: "256Mi"
cpu: "100m"
limits:
- memory: "512Mi"
- cpu: "200m"
+ memory: "1024Mi"
+ cpu: "600m"
livenessProbe:
tcpSocket:
port: 3306