njs-examples
caddy-docker-proxy
njs-examples | caddy-docker-proxy | |
---|---|---|
6 | 54 | |
547 | 2,378 | |
1.7% | - | |
4.9 | 7.4 | |
5 months ago | about 19 hours ago | |
JavaScript | Go | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
njs-examples
- Nginx Development Guide
- THE LIST - You want the goods? You got the goods.
-
A nginx and docker built reverse proxy server to cache the slow expensive requests to the openai api.
this is also extremely helpful when using nginx https://github.com/nginx/njs-examples
-
Reverse Proxy: creating a fixed port offset?
I don't know if you can do this directly in nginx config but you can definitely do it with njs. This github repo has some examples of how njs is used to do things during in-flight request: https://github.com/nginx/njs-examples. Also I think the variable you are looking for is $proxy_port (http://nginx.org/en/docs/varindex.html)
-
Create Nginx extensions in JavaScript
Examples on GitHub: https://github.com/nginx/njs-examples/
- Nginx JavaScript in Your Web Server Configuration
caddy-docker-proxy
- Caddy-Docker-Proxy: Caddy as a Reverse Proxy for Docker
-
Self-Hosted Is Awesome
https://github.com/lucaslorentz/caddy-docker-proxy
It handles the routing to multiple dockerized projects on one server, by scanning docker compose files for labels and automatically setting up the required caddy configuration.
-
Keycloak SSO with Docker Compose and Nginx
My go to is always this instead:
https://github.com/lucaslorentz/caddy-docker-proxy
Single label to a docker container and with correct DNS you’ll have an automatically managed certificate right away.
-
Working on Multiple Web Projects with Docker Compose and Traefik
I have had a great experience with using this: https://github.com/lucaslorentz/caddy-docker-proxy
It combines caddy with docker-compose labels, making it super easy to spin up new projects that can immediately be exposed.
-
Caddy is the first and only web server to use HTTPS automatically and by default
If you want a slightly heavier but more robust solution, caddy-docker-proxy[0] is a plugin that listens to the Docker socket and automatically updates the Caddy configuration based on Docker labels you add to containers.
I.e. it makes Caddy act a bit more like Traefik. Most of the time, you'll just add the label `caddy.reverse_proxy={{upstreams http 8080}}` to your containers and the plugin will regenerate Caddy's configuration whenever the container is modified.
[0] https://github.com/lucaslorentz/caddy-docker-proxy
-
Nginx Development Guide
I disagree, Caddy works great in Docker. See https://caddyserver.com/docs/running#docker-compose, and CDP is a project that autoconfigures Caddy from labels https://github.com/lucaslorentz/caddy-docker-proxy. Regarding plugins, it's super simple to write a Dockerfile to add plugins, we ship a builder image variant that can be used to compile in any plugins you want.
-
How I run my servers
````
This way, Caddy will buffer the request and give 30 seconds for your new service to get online when you're deploying a new version.
Ideally, during deployment of a new version the new version should go live and healthy before caddy starts using it (and kills the old container). I've looked at https://github.com/Wowu/docker-rollout and https://github.com/lucaslorentz/caddy-docker-proxy but haven't had time to prioritize it yet.
-
Which reverse proxy are you using?
Docker labels support is available via a plugin https://github.com/lucaslorentz/caddy-docker-proxy
-
My repository of the week: NGINX Proxy - Automated nginx for your containers
Or caddy-docker-proxy: https://github.com/lucaslorentz/caddy-docker-proxy
-
Caddy Repository from Lucas lorentz cant use Caddyfile?
I am trying now for some Days to use a Caddyfile additionaly to the auto generated files from lucas lorentzes caddy repositroy. https://github.com/lucaslorentz/caddy-docker-proxy
What are some alternatives?
nginxconfig.io - ⚙️ NGINX config generator on steroids 💉
Nginx Proxy Manager - Docker container for managing Nginx proxy hosts with a simple, powerful interface
Caddy - Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
njs-learning-materials - List some learning materials to help you step into the world of njs.
traefik - The Cloud Native Application Proxy
ngx_wasm_module - Nginx + WebAssembly
Portainer - Making Docker and Kubernetes management easy.
h5ai - HTTP web server index for Apache httpd, lighttpd and nginx.
jellyfin-media-player - Jellyfin Desktop Client based on Plex Media Player
lua-nginx-module - Embed the Power of Lua into NGINX HTTP servers
docker-pi-hole - Pi-hole in a docker container