Skip to content

Fix CORS regex for multi-level hunter subdomains#71

Merged
jMyles merged 1 commit into
cryptograss:productionfrom
magent-cryptograss:production
Mar 18, 2026
Merged

Fix CORS regex for multi-level hunter subdomains#71
jMyles merged 1 commit into
cryptograss:productionfrom
magent-cryptograss:production

Conversation

@magent-cryptograss

Copy link
Copy Markdown
Contributor

One-line fix: CORS regex didn't match pickipedia.justin.hunter.cryptograss.live because \w+\d* doesn't cross dots.

Changed to [\w.-]+ so any depth of subdomain under hunter.cryptograss.live is allowed.

Found during end-to-end testing of PR #69 — upload from dev wiki was blocked by CORS.

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.
@jMyles
jMyles merged commit f366494 into cryptograss:production Mar 18, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants