Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caddyfile Support #1

Open
ArcCal opened this issue Aug 11, 2024 · 1 comment
Open

Caddyfile Support #1

ArcCal opened this issue Aug 11, 2024 · 1 comment

Comments

@ArcCal
Copy link

ArcCal commented Aug 11, 2024

I'm really impressed with your docker-ocserv project.

Deploying an OpenConnect server has never been easier.

I noticed that the caddy-l4 plugin now supports Caddyfile, and considering you're a key developer there, I was hoping you could integrate Caddyfile configuration instead of JSON in docker-ocserv.

Thanks for considering this.

@vnxme
Copy link
Owner

vnxme commented Aug 11, 2024

Hi! This docker-ocserv is intended for my own use, but I'm glad to read you have found it useful for your own purposes.

I've shared this example in the Caddyfile support PR to caddy-l4, but it's probably a good idea to duplicate it here,

{
    servers {
        listener_wrappers {
            layer4 {
                @ocserv tls sni ocserv.example.com
                route @ocserv {
                    proxy ocserv.address.local:443
                }
                @others not tls sni ocserv.example.com
                route @others
            }
            tls
        }
    }
}

Please note, Caddy is a completely separate app, and it's also capable of being run in Docker. I think I will eventually update my docker-caddy image to include latest caddy-l4 with Caddyfile support. But nothing prevents you from building your own Docker images of ocserv and Caddy right now in the way you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants