Today I’ve made a little tutorial on how you can create custom domains using your own reverse-proxy.
What this does is allowing you, regardless of how many ‘thanks’ you have, create custom domains on glitch. With this you also have the power to change, modify and/or delete your custom-domains without having to contact a glitch moderator.
Requirements:
This requires your network to expose port 80 and 443.
Custom Domains through Glitch do support HTTPS, they just don’t automatically upgrade a HTTP request to an HTTPS request, although this is overcome by having your Glitch project redirect a HTTP request to it’s HTTPS counterpart.
Opening up ports, especially the common ports for web traffic, on a home network for a personal computer is in my opinion a bit of an unnecessary security risk. Not to mention the reliability problem, the computer would need to be up 24/7, and you’d be relying on your ISP not changing your IP address too often. If I were going to do this I think using a cloud provider’s VMs makes a lot more sense.
No problem! I love seeing people iterate on top of various platforms. I also had no idea that Freenom is where people get all these wild domain extensions, I’m going to have to find a use for some of these
I usually subdomain small stuff off my personal domain until it proves itself worth it’s own domain (and after I’ve changed the name 6-11 times).
I’ve never heard of Contabo but this setup could definitely also work on AWS within the bounds of the free tier so this would be completely free for the first year.
Contabo is probably the cheapest VPS hosting firm you’ll ever get into, their support is amazing, prizes are awesome, and performanse is also amazing. Sorry for the off-topic btw
I have nothing against that. But that is not the main reason for using your own reverse-proxy. Every time I go onto these forums I see a new post about domain removal, or some mistake with custom domains. Using a custom reverse-proxy allows you to not rely on Glitch to remove your domain so you can re-use it elsewhere or for any other reason rely on Glitch for your domain to work.
Depending on the amount of requests, sure, but if you have too many keep-alive http connections it might be little bit too much. Otherwise I think it should work fine
I also have made a reverse proxy myself called Proxo. Here’s my idea. Heroku gives you custom domains if you verify with a credit card and we can use it since we don’t need persistent storage. However there’s a specific number of hours you can run it. So if you run the reverse proxy on heroku you can setup custom domains without fly.io. Plus you can modify stuff like the loading screen and cache requests.
No because glitch notices that you are trying to access the project from adomain.com and not something.glitch.me and says “nonononono I don’t think you’re allowed to do that”
The issue here is that if you don’t do it properly (setting the host header from the reverse proxy to the endpoint, glitch in this case), glitch’s reverse proxy doesn’t have a single clue on what container to contact.
So as long as you set the host header to be your subdomain and glitch.me (example.glitch.me) you’ll be fine.
What happens in the above example is that Glitch receives your request, but the Host, or the domain, is not a valid glitch.me domain, therefore the reverse-proxy is not able to find a corresponding container to forward the request to.
A good config would look something like this, where the host header is modified to send a valid glitch.me subdomain:
If you order a free .tk domain you are in complete control of the domain, Freenom’s goal is that “there is a name for everyone” or something like that. Freenom cannot and even could not display adult content on your domain even if they wanted to. That would technically be impossible with how the web works.
I’ve been using freenom (or dot.tk) for about 2-3 years and I’ve never had any issues with them.
That isn’t 100% true. When you get a free domain from freenom, unlike other domain vendors, you do not have full rights to it. You simply have a silence where they are in control.
When you order a free domain from freenom you’ll be acting as a user of the domain and not a licensee, which is true. Although, their limitations are that you can’t transfer the domain and Freenom can cancel your domain if it does not comply with their Free domain name policy and dot.tk policy.
Anyhow, they do not remain the right to perform any actions against user-interaction, or in other words, they will- and can not put content on your site, make your domain redirect to some other place, etc. That is completely under your control.
EDIT: A licensee of a domain basically means you are the sole owner of the domain, and have full right to do as you wish with it (as long as it comply with the registrar’s policies and ICANN policies). A user of some domain means that you do not own the domain, but you remain the right to control the domain in certain areas.
There is more than just that, if you’re not sure at what you’re allowed to and not allowed to do you can always check the Policies for the different TLDs and Freenom’s ToS and Free Domains Agreement linked in my previous post
Here’s an idea, most glitch projects have a bit of issues with security headers. For example anyone can iframe the app, so you can make a default header adder that blocks iframing.