-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Comparing changes
Open a pull request
base repository: hackmdio/codimd
base: b1188a5
head repository: hackmdio/codimd
compare: 9287f6f
- 8 commits
- 11 files changed
- 1 contributor
Commits on Sep 30, 2025
-
experiment: Add reverse proxy path rewriting testbench
- Add Caddyfile.experiment with path stripping configuration - Add test script to validate the setup - Document the experiment approach and differences from main PR This tests if we can offload URL path handling entirely to the reverse proxy.
Configuration menu - View commit details
-
Copy full SHA for aac0abc - Browse repository at this point
Copy the full SHA aac0abcView commit details -
fix: Update Caddyfile with working route-based path rewriting
- Use route directive for proper request matching - Fix redirect matchers with path_regexp for exact matching - All tests now passing: ✅ Root redirect (/ → /codimd/) ✅ Path redirect (/codimd → /codimd/) ✅ Main app accessible at /codimd/ ✅ Static assets working ✅ Build assets working ✅ Path stripping via uri strip_prefix ✅ X-Forwarded-Prefix header passed to app
Configuration menu - View commit details
-
Copy full SHA for 475178e - Browse repository at this point
Copy the full SHA 475178eView commit details -
docs: Update experiment README with test results
- Document all passing tests - Add key learnings about Caddy configuration - Note potential issues that need further testing - Clarify that this approach requires reverse proxy
Configuration menu - View commit details
-
Copy full SHA for 8e838dc - Browse repository at this point
Copy the full SHA 8e838dcView commit details -
docs: Add comprehensive comparison of URL path approaches
- Compare app-based vs proxy-based path handling - Include test results for both approaches - Provide working Caddy and Nginx configurations - Recommend Approach 1 (main PR) for production This helps decide between the two architectural approaches.
Configuration menu - View commit details
-
Copy full SHA for 30ab797 - Browse repository at this point
Copy the full SHA 30ab797View commit details -
experiment: Add Nginx reverse proxy configuration (WIP - networking i…
…ssues on macOS) - Add nginx.experiment.conf with path rewriting - Add docker-compose.nginx-experiment.yml - Add test-nginx-experiment.sh test script - Note: Encountering Docker networking issues on macOS - host.docker.internal works from container - But port 8081 times out from host - Caddy experiment works perfectly as reference The configuration is correct but needs Linux Docker or different setup for macOS.
Configuration menu - View commit details
-
Copy full SHA for 8858ce4 - Browse repository at this point
Copy the full SHA 8858ce4View commit details -
fix: Nginx experiment now working with docker run
- docker-compose has networking issues on macOS - docker run works perfectly with --add-host flag - Added start-nginx-experiment.sh script for easy setup - All tests passing: redirects, static assets, main app The Nginx reverse proxy path rewriting is now fully working!
Configuration menu - View commit details
-
Copy full SHA for 348773c - Browse repository at this point
Copy the full SHA 348773cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d8918a3 - Browse repository at this point
Copy the full SHA d8918a3View commit details -
docs: Add comprehensive experiment summary
- Document successful Caddy and Nginx setups - Include quick start guides - Add comparison table and test results - Provide recommendations for each approach
Configuration menu - View commit details
-
Copy full SHA for 9287f6f - Browse repository at this point
Copy the full SHA 9287f6fView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff b1188a5...9287f6f