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

docs: reverse_proxy: Add guide for Caddy #87

Closed
wants to merge 1 commit into from

Conversation

Rijul-A
Copy link
Contributor

@Rijul-A Rijul-A commented Nov 19, 2021

Now that mholt/caddy-l4#33 has been merged, Caddy can be used as a reverse proxy for Snikket with all the features of sslh, and forwarding port 80 to Snikket's 5080.

@Rijul-A Rijul-A mentioned this pull request Nov 19, 2021
@mwild1
Copy link
Member

mwild1 commented Nov 19, 2021

Thanks for this! And your contribution to Caddy :)

I note that your changes don't appear to be in a release yet. It might be worth noting that, or holding off on merging this until they are (but even then it should probably clarify what Caddy version is required).

Would love for someone to test this (@turguenev? 🙂 ) and report how they get on.

@Rijul-A
Copy link
Contributor Author

Rijul-A commented Nov 19, 2021

I note that your changes don't appear to be in a release yet. It might be worth noting that, or holding off on merging this until they are (but even then it should probably clarify what Caddy version is required).

Caddy's plugins do not need a release; they are simply based on the master branch. A build made right now includes the modules layer4.matchers.xmpp and tls.handshake_match.alpn

$ wget https://github.com/caddyserver/xcaddy/releases/download/v0.2.0/xcaddy_0.2.0_linux_amd64.tar.gz
$ tar -xvzf xcaddy_0.2.0_linux_amd64.tar.gz
$ ./xcaddy build --with github.com/mholt/caddy-l4
$ ./caddy version
v2.4.6 h1:HGkGICFGvyrodcqOOclHKfvJC0qTU7vny/7FhYp9hNw=
$ ./caddy list-modules | grep -E '(xmpp|alpn)'
layer4.matchers.xmpp
tls.handshake_match.alpn

Would love for someone to test this (@turguenev? slightly_smiling_face ) and report how they get on.

Let me know if you get stuck somewhere; the JSON / YAML syntax takes a bit of getting used to, as opposed to the Caddyfile.

@Rijul-A Rijul-A changed the title Add reverse proxy guide for Caddy docs: reverse_proxy: Add guide for Caddy Dec 1, 2021
@Rijul-A
Copy link
Contributor Author

Rijul-A commented Dec 17, 2021

I will incorporate changes from this discussion on Caddy forums to the PR soon. Hopefully, we should have a testing report to go along.

@mwild1
Copy link
Member

mwild1 commented Dec 17, 2021

Thanks Rijul!

@Rijul-A Rijul-A closed this Dec 19, 2021
Rijul-A added a commit to Rijul-A/snikket-server that referenced this pull request Dec 19, 2021
Closes snikket-im#82
Based on snikket-im#87 and discussion in Caddy forums,
consolidate information into basic and advanced configuration. The
basic set up is easy to use, and only forward HTTP/S traffic. The
advanced set up requires additional plugins, and allows Caddy to be
used in place of `sslh` with the added advantage of forwarding port 80
- allowing Snikket to obtain certificates by itself.
Rijul-A added a commit to Rijul-A/snikket-server that referenced this pull request Dec 19, 2021
Closes snikket-im#82
Based on snikket-im#87 and discussion in Caddy forums,
consolidate information into basic and advanced configuration. The
basic set up is easy to use, and only forward HTTP/S traffic. The
advanced set up requires additional plugins, and allows Caddy to be
used in place of `sslh` with the added advantage of forwarding port 80
- allowing Snikket to obtain certificates by itself.
Rijul-A added a commit to Rijul-A/snikket-server that referenced this pull request Dec 19, 2021
Closes snikket-im#82
Based on snikket-im#87 and discussion in Caddy forums,
consolidate information into basic and advanced configuration. The
basic set up is easy to use, and only forwards HTTP/S traffic. The
advanced set up requires additional plugins, and allows Caddy to be
used in place of `sslh` with the added advantage of forwarding port 80
- allowing Snikket to obtain certificates by itself.
Rijul-A added a commit to Rijul-A/snikket-server that referenced this pull request Dec 20, 2021
Closes snikket-im#82
Based on snikket-im#87 and discussion in Caddy forums, consolidate
information into basic and advanced configuration. The basic set up is
easy to use, and only forwards HTTP/S traffic. The advanced set up
requires additional plugins, and allows Caddy to be used in place of
`sslh` with the added advantage of forwarding port 80 - allowing
Snikket to obtain certificates by itself.

See also mholt/caddy-l4#39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants