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

Custom domain support #9

Closed
arp242 opened this issue Jul 30, 2019 · 3 comments
Closed

Custom domain support #9

arp242 opened this issue Jul 30, 2019 · 3 comments

Comments

@arp242
Copy link
Owner

arp242 commented Jul 30, 2019

Users should be able to add a CNAME to stats.example.com to example.goatcounter.com.

Not hard but needs support for CSP etc. Need to add a setting for it.

@arp242 arp242 added this to the Version 1.0 milestone Jul 30, 2019
@arp242 arp242 closed this as completed Oct 16, 2019
@gpanders
Copy link

Is this implemented? I have been wrestling with getting GoatCounter stood up behind a Traefik reverse proxy with no success, but if I can just redirect from a subdomain on my own domain then I would rather just do that!

@arp242
Copy link
Owner Author

arp242 commented Jan 15, 2020

Yeah, it should work @gpanders, but the acme/tls implementation depends on acme.sh right now, so that might error out. GoatCounter doesn't serve the TLS itself right now at all, so it's just for the benefit of the https proxy.

Redirecting (HTTP 301) should always work, but a CNAME needs some support on GoatCounter's side. If the UI doesn't work you can just update sites set plan='business', cname='stats.example.com' where id=1.

The self-hosting experience might be as bit rough in some areas like this I'm afraid. Improving this is one of the goals for v1.1

Setting up a proxy shouldn't be too hard, essentially just redirect *.mydomain.com to GoatCounter. There should probably be a simpler "self-host mode" to just run it on stats.mydomain.com without all this faffing about that's only needed for the SaaS part 🤔

@arp242
Copy link
Owner Author

arp242 commented Jan 16, 2020

I create #120 to track this @gpanders, in case you want to subscribe to that and be notified once it's done.

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

No branches or pull requests

2 participants