Replies: 8 comments
-
Why do you still need docker-gen? Consider switching to Traefik, it solves the same problem. |
Beta Was this translation helpful? Give feedback.
-
it´s somehow different :D |
Beta Was this translation helpful? Give feedback.
-
@sikmir you may not have helped @Aschenbecher but this little comment made me find Traefik and I hadn't seen it before. It is exactly what I was after. I started adding in a new environment variable and then adjusting the template to fit, but that is the one. For those looking to do www redirects, if the goal is to have a single place to redirect your domain to you can add a new environment variable
Change the 301 redirect line for https redirects to and in the server blocks wrap this around before you include the vhosts (that goes in the
Something like that should work and be configurable per domain I think I did almost get a more complicated redirect variable working, but the scoping of variables in the golang text templates makes it very difficult to do within the tmpl file and I don't know enough go to customise any other bits. |
Beta Was this translation helpful? Give feedback.
-
This is a good project, but getting stale without any active merging of PRs |
Beta Was this translation helpful? Give feedback.
-
as a quick note: I came to this project after I was using Traefik and looking for an alternative. |
Beta Was this translation helpful? Give feedback.
-
Why should Traefik be better? I really like Nginx, it is an industry standard and supports many plugins including modsecurity. There doesn't seem to be WAF in Traefik for example (traefik/traefik#431 and no custom plugins traefik/traefik#1336). Traefik also doesn't have the control plane and data plane separated (it is in Traefik Enterprise Edition only) so if Traefik is hacked, the attacker could access the docker socket. It is also popular to use Nginx for Kubernetes ingress https://github.com/kubernetes/ingress-nginx. And docker-gen is capable of generating basically any configuration file, not just for Nginx. This project makes sense to me but probably needs a new maintainer. |
Beta Was this translation helpful? Give feedback.
-
Like others have said, docker-gen is more general purpose than just part of an ingress. And Nginx is our go to reverse proxy any day. We do use Traefik and love it for what it does. Unfortunately we also need fastcgi for some services which Traefik is currently not planning to support. Docker-gen actually solves our problems perfectly. When used with Nginx, the fact that we can maintain our own Be really sad to see this project go. |
Beta Was this translation helpful? Give feedback.
-
Yep, project is still active. |
Beta Was this translation helpful? Give feedback.
-
Hi,
someone knows if this project is still active? Looks like last commit is 3 month ago and alot of not merged pull requests. Maybe there is a active fork somewhere around? Still have problems with not restarting nginx-gen, and issue about this topic is open for a while now, and I cant see any answeres from Jwilder somewhere :(
Beta Was this translation helpful? Give feedback.
All reactions