commit 8b3cc53d9916f5f68f248ac10dc12576b324b280
parent eb07baf8b3e9f462e9f81f730804845c36e47aa0
Author: MTRNord <MTRNord@users.noreply.github.com>
Date: Wed, 14 Jan 2026 21:15:12 +0100
small cors fix
Signed-off-by: MTRNord <MTRNord@users.noreply.github.com>
Diffstat:
3 files changed, 26 insertions(+), 24 deletions(-)
diff --git a/apps/talos_cluster/blog/docker/Dockerfile b/apps/talos_cluster/blog/docker/Dockerfile
@@ -71,13 +71,13 @@ RUN wget -q https://downloads.wordpress.org/plugin/redis-cache.2.7.0.zip \
&& unzip -q redis-cache.2.7.0.zip -d /var/www/html/wordpress/wp-content/plugins/ \
&& rm redis-cache.2.7.0.zip
# Install ActivityPub plugin
-RUN wget -q https://downloads.wordpress.org/plugin/activitypub.7.8.2.zip \
- && unzip -q activitypub.7.8.2.zip -d /var/www/html/wordpress/wp-content/plugins/ \
- && rm activitypub.7.8.2.zip
+RUN wget -q https://downloads.wordpress.org/plugin/activitypub.7.8.5.zip \
+ && unzip -q activitypub.7.8.5.zip -d /var/www/html/wordpress/wp-content/plugins/ \
+ && rm activitypub.7.8.5.zip
# Install Embed Optimizer
-RUN wget -q https://downloads.wordpress.org/plugin/embed-optimizer.1.0.0-beta2.zip \
- && unzip -q embed-optimizer.1.0.0-beta2.zip -d /var/www/html/wordpress/wp-content/plugins/ \
- && rm embed-optimizer.1.0.0-beta2.zip
+RUN wget -q https://downloads.wordpress.org/plugin/embed-optimizer.1.0.0-beta3.zip \
+ && unzip -q embed-optimizer.1.0.0-beta3.zip -d /var/www/html/wordpress/wp-content/plugins/ \
+ && rm embed-optimizer.1.0.0-beta3.zip
# Install Enhanced Responsive Images
RUN wget -q https://downloads.wordpress.org/plugin/auto-sizes.1.7.0.zip \
&& unzip -q auto-sizes.1.7.0.zip -d /var/www/html/wordpress/wp-content/plugins/ \
@@ -91,25 +91,25 @@ RUN wget -q https://downloads.wordpress.org/plugin/dominant-color-images.1.2.0.z
&& unzip -q dominant-color-images.1.2.0.zip -d /var/www/html/wordpress/wp-content/plugins/ \
&& rm dominant-color-images.1.2.0.zip
# Install Image Prioritizer
-RUN wget -q https://downloads.wordpress.org/plugin/image-prioritizer.1.0.0-beta2.zip \
- && unzip -q image-prioritizer.1.0.0-beta2.zip -d /var/www/html/wordpress/wp-content/plugins/ \
- && rm image-prioritizer.1.0.0-beta2.zip
+RUN wget -q https://downloads.wordpress.org/plugin/image-prioritizer.1.0.0-beta3.zip \
+ && unzip -q image-prioritizer.1.0.0-beta3.zip -d /var/www/html/wordpress/wp-content/plugins/ \
+ && rm image-prioritizer.1.0.0-beta3.zip
# Install Index WP MySQL For Speed
RUN wget -q https://downloads.wordpress.org/plugin/index-wp-mysql-for-speed.1.5.6.zip \
&& unzip -q index-wp-mysql-for-speed.1.5.6.zip -d /var/www/html/wordpress/wp-content/plugins/ \
&& rm index-wp-mysql-for-speed.1.5.6.zip
# Install Modern Image Formats
-RUN wget -q https://downloads.wordpress.org/plugin/webp-uploads.2.6.0.zip \
- && unzip -q webp-uploads.2.6.0.zip -d /var/www/html/wordpress/wp-content/plugins/ \
- && rm webp-uploads.2.6.0.zip
+RUN wget -q https://downloads.wordpress.org/plugin/webp-uploads.2.6.1.zip \
+ && unzip -q webp-uploads.2.6.1.zip -d /var/www/html/wordpress/wp-content/plugins/ \
+ && rm webp-uploads.2.6.1.zip
# Install Optimization Detective
-RUN wget -q https://downloads.wordpress.org/plugin/optimization-detective.1.0.0-beta3.zip \
- && unzip -q optimization-detective.1.0.0-beta3.zip -d /var/www/html/wordpress/wp-content/plugins/ \
- && rm optimization-detective.1.0.0-beta3.zip
+RUN wget -q https://downloads.wordpress.org/plugin/optimization-detective.1.0.0-beta4.zip \
+ && unzip -q optimization-detective.1.0.0-beta4.zip -d /var/www/html/wordpress/wp-content/plugins/ \
+ && rm optimization-detective.1.0.0-beta4.zip
# Install Performance Lab
-RUN wget -q https://downloads.wordpress.org/plugin/performance-lab.4.0.0.zip \
- && unzip -q performance-lab.4.0.0.zip -d /var/www/html/wordpress/wp-content/plugins/ \
- && rm performance-lab.4.0.0.zip
+RUN wget -q https://downloads.wordpress.org/plugin/performance-lab.4.0.1.zip \
+ && unzip -q performance-lab.4.0.1.zip -d /var/www/html/wordpress/wp-content/plugins/ \
+ && rm performance-lab.4.0.1.zip
# Install Speculative Loading
RUN wget -q https://downloads.wordpress.org/plugin/speculation-rules.1.6.0.zip \
&& unzip -q speculation-rules.1.6.0.zip -d /var/www/html/wordpress/wp-content/plugins/ \
diff --git a/apps/talos_cluster/blog/docker/wordpress.conf b/apps/talos_cluster/blog/docker/wordpress.conf
@@ -29,7 +29,7 @@ server {
alias /var/www/html/well-known/;
default_type application/json;
types { }
- add_header Content-Type application/json;
+ # add_header Content-Type application/json;
# Ensure cors headers are set
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS';
@@ -95,17 +95,17 @@ server {
# POST requests and URLs with a query string should always go to PHP
if ($request_method = POST) {
set $cache_uri 'null cache';
- }
+ }
if ($query_string != "") {
set $cache_uri 'null cache';
- }
+ }
# Don't cache URIs containing the following segments or /wp-json/activitypub
if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php |sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml|/wp-json/activitypub)") {
set $cache_uri 'null cache';
- }
-
+ }
+
# Don't use the cache for logged-in users or recent commenters
if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in") {
set $cache_uri 'null cache';
@@ -114,7 +114,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-https.html $uri $uri/ /index.php$is_args$args;
- }
+ }
location ~ \.php$ {
try_files $uri =404;
diff --git a/apps/talos_cluster/convex/deployment.yaml b/apps/talos_cluster/convex/deployment.yaml
@@ -214,6 +214,7 @@ spec:
- "https://convex.mtrnord.blog"
- "https://api.convex.mtrnord.blog"
- "https://dashboard.convex.mtrnord.blog"
+ - "http://localhost:5173"
allowMethods:
- "*"
allowHeaders:
@@ -244,6 +245,7 @@ spec:
- "https://convex.mtrnord.blog"
- "https://api.convex.mtrnord.blog"
- "https://dashboard.convex.mtrnord.blog"
+ - "http://localhost:5173"
allowMethods:
- "*"
allowHeaders: