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

Don't do dns level #1

Open
nikelborm opened this issue Oct 9, 2024 · 2 comments
Open

Don't do dns level #1

nikelborm opened this issue Oct 9, 2024 · 2 comments

Comments

@nikelborm
Copy link

nikelborm commented Oct 9, 2024

You don't actually need to manage dns here. You can simply generate nginx config from some json file with a list of sites to redirect to. Or even go wild and write javascript code inside nginx config, which seems to be allowed with some plugin or something. I don't remember how exactly. Or just edit single nginx config file without all that fancy stuff with a few repeating config parts. Also nginx has a way to randomly spread requests as a simple load-balancer and funny enough but you can also use it to pass the traffic to different sites. The problem with this LB mode seems is that nginx instead of redirects will hold open connections to these sites and increase load on your own servers instead of just redirecting and forgetting and also probably will break analytics of sites you redirect to and create CORS problems. These are problems only with LB mode and I mentioned those other ways without these problems earlier.
Or you can write in a half of an hour a simple 20 lines backend.

Either way DNS doesn't look like a good idea.

PS: that's pretty much reminded me more popular concept of webrings in the internet. You can look it up if you haven't heard it. If you'll frame this as a Typescript webring, you'll create much bigger community of developers with personal sites that share the same love to typescript.

@nikelborm
Copy link
Author

I can offer help with any of the above

@nikelborm
Copy link
Author

nikelborm commented Oct 9, 2024

Also I didn't consider that you have no server, and in this case, you can send admin requests to dns server or api calls to the server of company managing it (if they don't have a library) to update records once in a while using for example GitHub actions with automatic runs with a specified interval. But webring seems to be more appealing anyway

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

1 participant