Fix CORS regex for multi-level hunter subdomains#71
Merged
Conversation
The regex \w+\d*\.hunter only matched single-level subdomains like magent1.hunter.cryptograss.live but not pickipedia.justin.hunter. Changed to [\w.-]+ to match any depth of subdomain.
magent-cryptograss
pushed a commit
to magent-cryptograss/maybelle-config
that referenced
this pull request
Apr 3, 2026
Replace bare-metal nginx + PHP-FPM with Docker container running php:8.2-apache. This matches the demo setup on hunter which works perfectly, including Firefox XHR multipart uploads that fail through Caddy→nginx (the upload bug in pickipedia#71). Architecture: Caddy (SSL) → Docker (Apache+PHP, port 8080) → MariaDB (host, socket mount) New docker-wiki ansible role: - Installs Docker CE - Stops/disables nginx and php-fpm - Deploys Dockerfile + docker-compose.yml - Builds image, starts container Other changes: - Playbook: swap php-fpm+nginx roles for docker-wiki - Caddy: restore clean config with encode gzip zstd - Mediawiki role: remove MW download tasks, update cron to docker exec - Import script: use docker exec for update.php, restart container
jMyles
added a commit
that referenced
this pull request
Apr 9, 2026
Replace bare-metal nginx + PHP-FPM with Docker container running php:8.2-apache. This matches the demo setup on hunter which works perfectly, including Firefox XHR multipart uploads that fail through Caddy→nginx (the upload bug in pickipedia#71). Architecture: Caddy (SSL) → Docker (Apache+PHP, port 8080) → MariaDB (host, socket mount) New docker-wiki ansible role: - Installs Docker CE - Stops/disables nginx and php-fpm - Deploys Dockerfile + docker-compose.yml - Builds image, starts container Other changes: - Playbook: swap php-fpm+nginx roles for docker-wiki - Caddy: restore clean config with encode gzip zstd - Mediawiki role: remove MW download tasks, update cron to docker exec - Import script: use docker exec for update.php, restart container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One-line fix: CORS regex didn't match
pickipedia.justin.hunter.cryptograss.livebecause\w+\d*doesn't cross dots.Changed to
[\w.-]+so any depth of subdomain underhunter.cryptograss.liveis allowed.Found during end-to-end testing of PR #69 — upload from dev wiki was blocked by CORS.