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

Examples in caddyfile format? #19

Open
IngwiePhoenix opened this issue Dec 14, 2022 · 3 comments
Open

Examples in caddyfile format? #19

IngwiePhoenix opened this issue Dec 14, 2022 · 3 comments
Labels
config enhancement New feature or request P2 P3

Comments

@IngwiePhoenix
Copy link

As great as the JSON config is, I find it far less readable than the Caddyfile format - but this is very much a personal opinion, obviously :)

Would you consider providing examples in both JSON and Caddyfile? Thanks!

PS.: Can I use this module to "proxy" SSH connections? pc -> git.domain.tld:22 -> ip:2222

@mholt
Copy link
Collaborator

mholt commented Dec 15, 2022

I don't think Caddyfile support has been implemented yet. It might be quite the undertaking (for full coverage, anyway).

@mohammed90
Copy link
Collaborator

mohammed90 commented Dec 18, 2022

As Matt said, Caddyfile isn't currently supported nor do I see it in the near future. It may be a second- or third- priority item. If I'm supporting an a config format, I'm starting with an adapter for OpenSSH config to ease migration.

I'll keep this open as a feature request!

PS.: Can I use this module to "proxy" SSH connections? pc -> git.domain.tld:22 -> ip:2222

Yes! You need to enable/allow reverseforward. The default is to deny forwards completely. I foresee more custom modules for an allow/deny based on upstream address or port.
https://caddyserver.com/docs/json/apps/ssh/servers/

Please provide usage feedback! I

@mohammed90 mohammed90 added enhancement New feature or request config P3 P2 labels Dec 18, 2022
@IngwiePhoenix
Copy link
Author

Thank you for the infos!

I have grown very confortable with Caddyfiles and I quite like the syntax. But I have yet to really learn the JSON-side of things...

As for usage? Well I use my server as a frontend for my homeserver, which are linked via a SoftEther VPN. So it'd be neat to do ssh home.domain to access this computer specifically, whilst just going ssh domain to access the main one. There might be more devices to be added more later down the line, but basically what I would like to do :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config enhancement New feature or request P2 P3
Projects
None yet
Development

No branches or pull requests

3 participants