cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

commit 90680a3a7deef50981e9700a6d316665fef116af
parent bf853443662e256cebbc12c10b2f5ec241e77d1a
Author: MTRNord <MTRNord@users.noreply.github.com>
Date:   Wed, 15 Oct 2025 00:29:33 +0200

fixes

Signed-off-by: MTRNord <MTRNord@users.noreply.github.com>

Diffstat:
M.gitleaksignore | 1+
Mapps/talos_cluster/blog/docker/10-opcache.ini | 5+++--
Mapps/talos_cluster/blog/docker/Dockerfile | 2+-
Mapps/talos_cluster/blog/docker/php.ini | 12+++++++++++-
Aapps/talos_cluster/blog/docker/wp-cache-config.php | 110+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mapps/talos_cluster/blog/wordpress.yaml | 4++--
6 files changed, 128 insertions(+), 6 deletions(-)

diff --git a/.gitleaksignore b/.gitleaksignore @@ -1 +1,2 @@ apps/talos_cluster/monitoring-stack/dashboards/connectivity-tester-dashboard.json:generic-api-key:328 +apps/talos_cluster/blog/docker/wp-cache-config.php:generic-api-key:9 diff --git a/apps/talos_cluster/blog/docker/10-opcache.ini b/apps/talos_cluster/blog/docker/10-opcache.ini @@ -1,7 +1,8 @@ ; configuration for php opcache module ; priority=10 zend_extension=opcache.so -opcache.jit=off +opcache.jit_buffer_size=64M +opcache.jit=tracing opcache.enable=1 opcache.enable_cli=0 @@ -12,4 +13,4 @@ opcache.revalidate_freq=2 opcache.validate_timestamps=0 opcache.save_comments=1 opcache.fast_shutdown=1 -opcache.huge_code_pages=1 +opcache.huge_code_pages=0 diff --git a/apps/talos_cluster/blog/docker/Dockerfile b/apps/talos_cluster/blog/docker/Dockerfile @@ -44,7 +44,7 @@ COPY wellknown/support.json /var/www/html/well-known/support.json RUN rm /var/www/html/wordpress/wp-config-sample.php ADD wp-config.php /var/www/html/wordpress/wp-config.php ADD advanced-cache.php /var/www/html/wordpress/wp-content/advanced-cache.php - +ADD wp-cache-config.php /var/www/html/wordpress/wp-content/wp-cache-config.php # Change the user and Permission of WordPress root directory RUN chown -R www-data:www-data /var/www/html/wordpress \ && chmod -R 755 /var/www/html/wordpress diff --git a/apps/talos_cluster/blog/docker/php.ini b/apps/talos_cluster/blog/docker/php.ini @@ -1,6 +1,16 @@ file_uploads = On -allow_url_fopen = On +allow_url_fopen = Off memory_limit = 256M upload_max_filesize = 150M max_execution_time = 350 date.timezone = Europe/Berlin +display_errors = Off +post_max_size = 64M +zlib.output_compression = On +zlib.output_compression_level = 5 +realpath_cache_size = 16M +realpath_cache_ttl = 120 +session.save_handler = files +session.save_path = /var/lib/php/sessions +session.cache_limiter = public +session.cache_expire = 180 diff --git a/apps/talos_cluster/blog/docker/wp-cache-config.php b/apps/talos_cluster/blog/docker/wp-cache-config.php @@ -0,0 +1,110 @@ +<?php +/* +WP-Cache Config Sample File + +See wp-cache.php for author details. +*/ + +// gitleaks:allow +$cache_page_secret = '141a2b64316353b41d4cc5c7070a6d3f'; +$wp_cache_home_path = '/'; +$wp_cache_slash_check = 1; +$cache_time_interval = 600; +if ( ! defined('WPCACHEHOME') ) + define( 'WPCACHEHOME', WP_CONTENT_DIR . "/plugins/wp-super-cache/" ); + +$cache_compression = 1; +$cache_enabled = true; +$super_cache_enabled = true; +$cache_max_time = 1800; +//$use_flock = true; // Set it true or false if you know what to use +$cache_path = WP_CONTENT_DIR . '/cache/'; +$file_prefix = 'wp-cache-'; +$ossdlcdn = 0; + +// Array of files that have 'wp-' but should still be cached +$cache_acceptable_files = array( 'wp-comments-popup.php', 'wp-links-opml.php', 'wp-locations.php' ); + +$cache_rejected_uri = array('wp-.*\\.php', 'index\\.php'); +$cache_rejected_user_agent = array(); + +$cache_rebuild_files = 1; + +// Disable the file locking system. +// If you are experiencing problems with clearing or creating cache files +// uncommenting this may help. +$wp_cache_mutex_disabled = 1; + +// Just modify it if you have conflicts with semaphores +$sem_id = 520404295; + +if ( '/' != substr($cache_path, -1)) { + $cache_path .= '/'; +} + +$wp_cache_mobile = 0; +$wp_cache_mobile_whitelist = 'Stand Alone/QNws'; +$wp_cache_mobile_browsers = 'Android, 2.0 MMP, 240x320, AvantGo, BlackBerry, Blazer, Cellphone, Danger, DoCoMo, Elaine/3.0, EudoraWeb, hiptop, IEMobile, iPhone, iPod, KYOCERA/WX310K, LG/U990, MIDP-2.0, MMEF20, MOT-V, NetFront, Newt, Nintendo Wii, Nitro, Nokia, Opera Mini, Palm, Playstation Portable, portalmmm, Proxinet, ProxiNet, SHARP-TQ-GX10, Small, SonyEricsson, Symbian OS, SymbianOS, TS21i-10, UP.Browser, UP.Link, Windows CE, WinWAP'; + +// change to relocate the supercache plugins directory +$wp_cache_plugins_dir = WPCACHEHOME . 'plugins'; +// set to 1 to do garbage collection during normal process shutdown instead of wp-cron +$wp_cache_shutdown_gc = 0; +$wp_super_cache_late_init = 0; + +// uncomment the next line to enable advanced debugging features +$wp_super_cache_advanced_debug = 0; +$wp_super_cache_front_page_text = ''; +$wp_super_cache_front_page_clear = 0; +$wp_super_cache_front_page_check = 0; +$wp_super_cache_front_page_notification = '0'; + +$wp_cache_anon_only = 0; +$wp_supercache_cache_list = 0; +$wp_cache_debug_to_file = 0; +$wp_super_cache_debug = 0; +$wp_cache_debug_level = 5; +$wp_cache_debug_ip = ''; +$wp_cache_debug_log = ''; +$wp_cache_debug_email = ''; +$wp_cache_pages[ "search" ] = 0; +$wp_cache_pages[ "feed" ] = 0; +$wp_cache_pages[ "category" ] = 0; +$wp_cache_pages[ "home" ] = 0; +$wp_cache_pages[ "frontpage" ] = 0; +$wp_cache_pages[ "tag" ] = 0; +$wp_cache_pages[ "archives" ] = 0; +$wp_cache_pages[ "pages" ] = 0; +$wp_cache_pages[ "single" ] = 0; +$wp_cache_pages[ "author" ] = 0; +$wp_cache_hide_donation = 0; +$wp_cache_not_logged_in = 2; +$wp_cache_clear_on_post_edit = 0; +$wp_cache_hello_world = 0; +$wp_cache_mobile_enabled = 0; +$wp_cache_cron_check = 0; +$wp_cache_mfunc_enabled = 0; +$wp_cache_make_known_anon = 0; +$wp_cache_refresh_single_only = 0; +$wp_cache_mod_rewrite = 0; +$wp_supercache_304 = 1; +$wp_cache_front_page_checks = 1; +$wp_cache_disable_utf8 = 0; +$wp_cache_no_cache_for_get = 0; +$cache_scheduled_time = "00:00"; +$wp_cache_preload_interval = 600; +$cache_schedule_type = 'interval'; +$wp_cache_preload_posts = 0; +$wp_cache_preload_on = 0; +$wp_cache_preload_taxonomies = 0; +$wp_cache_preload_email_me = 0; +$wp_cache_preload_email_volume = 'none'; +$wp_cache_mobile_prefixes = ''; +$cached_direct_pages = array( ); +$wpsc_served_header = false; +$cache_gc_email_me = 0; +$wpsc_save_headers = 0; +$cache_schedule_interval = 'hourly'; +$wp_super_cache_comments = 1; +$wpsc_version = 169; +?> diff --git a/apps/talos_cluster/blog/wordpress.yaml b/apps/talos_cluster/blog/wordpress.yaml @@ -97,8 +97,8 @@ spec: memory: "256Mi" cpu: "100m" limits: - memory: "512Mi" - cpu: "200m" + memory: "2048Mi" + cpu: "2000m" volumeMounts: - name: wordpress-persistent-storage mountPath: /var/www/html/wordpress/wp-content/uploads