Today I had to lock down Laravel Horizon on one of my client APIs. No frontend, no users table, no auth system at all. Just Horizon running in production and, as usual, publicly accessible. Crap! The goal was simple: protect the Horizon dashboard with minimal setup. No database, no middleware, no extra complexity. Just basic… Continue reading Secure Laravel Horizon with Basic Authentication
Category: Technology
Twitter API OAuth 403 Forbidden Fix
I was recently integrating “Login with X” (Twitter OAuth 2.0) for a project, and everything seemed smooth — got the access token without issues. But when I tried calling https://api.twitter.com/2/users/me, I hit a 403 Forbidden response. No clear errors. No useful clues. After tons of debugging, the fix was surprising: Twitter (X) requires the tweet.read… Continue reading Twitter API OAuth 403 Forbidden Fix
How to exclude a domain from HostRegexp in Traefik
If you’re brave like me and have hosted an app with wildcard subdomains on your traefik server, you might find yourself in the situation where you want to exclude a subdomain from being routed by traefik router to the app container. Let’s say you have a router like this: Thats goanna have all the subdomains… Continue reading How to exclude a domain from HostRegexp in Traefik
Docker Container Can’t Connect to Another on Same Network? Check This Portainer Quirk
Today I hit one of those sneaky Docker networking issues that nearly drove me up the wall. Maybe this’ll save someone else from the same hours of head-scratching. I have an php application container that had been running fine, until it suddenly couldn’t connect to one of its internal services anymore. In my case, the… Continue reading Docker Container Can’t Connect to Another on Same Network? Check This Portainer Quirk
Wildcard Subdomain Router in traefik
before I discover and give traefik a try, I used to have nginx to reverse proxy requests on my servers to my application containers. finding traefik took this setup to a completely different level, the automatic letsencrypt certificate generation and easy management of configuration through labels was enough to make traefik awesome. Anyhow I think… Continue reading Wildcard Subdomain Router in traefik
