• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mroderick / codebar-planner / 24961250304
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: feature/default-async-email-delivery
DEFAULT BRANCH: master
Ran 26 Apr 2026 04:21PM UTC
Jobs 1
Files 184
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Apr 2026 04:18PM UTC coverage: 95.443%. Remained the same
24961250304

push

github

mroderick
feat: add nginx reverse proxy for Plausible analytics

- Proxy Plausible script and event API through nginx to bypass adblockers
- Add DNS resolver (Quad9 9.9.9.9) for upstream domain resolution
- Add proxy_cache in /dev/shm for Plausible script (5m TTL, 100m max)
- Add security headers (X-Frame-Options, X-Content-Type-Options, X-XSS-Protection, Referrer-Policy)
- Configure Puma to bind to Unix socket when nginx config exists
- Signal nginx buildpack readiness via /tmp/app-initialized file

## Lessons learned

Deviations from initial plan:
- Used /dev/shm (tmpfs) for proxy_cache instead of /tmp (limited space)
- Used ENV detection for nginx config file presence, not DYNO var (not available on all dynos)
- Moved nginx 'set' directives inside server block (required by nginx)
- Had to add DNS resolver manually (Heroku's resolver not automatically available in proxy_pass)

Key technical discoveries:
- heroku-buildpack-nginx waits for /tmp/app-initialized file before starting nginx
- nginx 'set' directive only works in server/location contexts, not http block
- Puma must bind to unix socket AND signal readiness for nginx to connect
- proxy_cache in /dev/shm persists across dyno restarts (vs /tmp which doesn't)

See: github.com/codebar/planner/discussions/2580

3519 of 3687 relevant lines covered (95.44%)

47.35 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24961250304.1 26 Apr 2026 04:21PM UTC 1104
69.78
GitHub Action Run
Source Files on build 24961250304
  • Tree
  • List 184
  • Changed 120
  • Source Changed 0
  • Coverage Changed 120
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24961250304
  • df5e4e47 on github
  • Prev Build on master (#24931004799)
  • Next Build on feature/nginx-plausible-proxy-clean (#25069514946)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc