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

Add instructions for subdomains #9

Open
alexjmccoy opened this issue Jul 21, 2020 · 1 comment
Open

Add instructions for subdomains #9

alexjmccoy opened this issue Jul 21, 2020 · 1 comment

Comments

@alexjmccoy
Copy link

I think it would be fairly easy to add Caddy instructions for reverse proxying subdomains, i.e. nextcloud.domain.com for the various Docker containers. I'm researching this now so I might be able to contribute but I figured I'd get the issue going.

Thanks for the great project!

@technomada
Copy link
Owner

Yes, good idea, what do you have in mind? Caddy does have on the fly "on_demand" https mode..

*.example.com {
	tls cert@example.com {
		on_demand
		}
	}

I'm thinking something like..
On your EDGE NODE

Edit Caddyfile

$ vim ~/Caddyfile

nextcloud.example.com {
	tls cert@example.com

	reverse_proxy 10.1.1.2:80
	}

On your LOCAL NODE

Edit Caddyfile

nextcloud.example.com:80 {

	reverse_proxy nextcloud:80
	}

Eventually it would be good to make a full nextcloud container instruction section.

Started a md doc here..
https://github.com/technomada/cloud-from-scratch/blob/master/more/subdomains.md

Thanks for the kind words!

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