Skip to content

Introduce Asian directory server in code#3697

Merged
ann0see merged 1 commit into
jamulussoftware:mainfrom
ann0see:directoryAsia
May 19, 2026
Merged

Introduce Asian directory server in code#3697
ann0see merged 1 commit into
jamulussoftware:mainfrom
ann0see:directoryAsia

Conversation

@ann0see
Copy link
Copy Markdown
Member

@ann0see ann0see commented May 18, 2026

Short description of changes

For geo-redundancy, latency and since Any Genre 3 is not heavily used, we introduce a directory in Asia. See
#3692

CHANGELOG: Introduce Directory Server in Asia. This replaces Any Genre 3. Asian/Australian users should from now on use Any Genre Asia.

Context: Fixes an issue?

Does this change need documentation? What needs to be documented and how?

Fixes: #3692

Status of this Pull Request

Ready for review

What is missing until this pull request can be merged?

Review

Checklist

  • I've verified that this Pull Request follows the general code principles
  • I tested my code and it does what I want
  • My code follows the style guide
  • I waited some time after this Pull Request was opened and all GitHub checks completed without errors.
  • I've filled all the content above

For geo redundancy, latency and since Any Genre 3 is not heavily used,
we introduce a directory in Asia. See
jamulussoftware#3692
@ann0see ann0see added this to the Release 4.0.0 milestone May 18, 2026
@ann0see ann0see added this to Tracking May 18, 2026
@github-project-automation github-project-automation Bot moved this to Triage in Tracking May 18, 2026
@ann0see
Copy link
Copy Markdown
Member Author

ann0see commented May 18, 2026

Any Genre Asia shows up correctly in the client and server instead of Any Genre 3

@ann0see ann0see requested review from corrados, pljones and softins May 18, 2026 19:11
@ann0see ann0see moved this from Triage to Waiting on Team in Tracking May 18, 2026
@ann0see
Copy link
Copy Markdown
Member Author

ann0see commented May 18, 2026

@corrados We've now moved Any Genre 3 to Any Genre Asia hosted by @dtinth We believe it's safe to shut down Any Genre 3 directory on your end.

Comment thread src/util.cpp
case AT_ANY_GENRE2:
return CENTSERV_ANY_GENRE2;
case AT_ANY_GENRE3:
return CENTSERV_ANY_GENRE3;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably rather not name it CENTSERV anymore...

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I was going to say - separate PR to move to DIRECTORY_ and .app in one go?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could do this yes. But .app didn't resolve for me yet. @gilgongo

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, looking at the Cloudflare config- I'd forgotten that it works using 301 redirects. For some reason I thought it had some DNS wildcard capability. So no .app for directories right now I'm afraid.

Copy link
Copy Markdown
Member

@gilgongo gilgongo May 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I was going to say - separate PR to move to DIRECTORY_ and .app in one go?

I suppose we could replicate the .io zone to .app and maintain both in parallel? We don't make changes that often after all. As far as I can tell, CloudFlare don't allow pointing two domains to the same zone file at least.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK sure. I'll see if I can set up .app with the same host names as .io. Then when that's done we can CNAME all the the .io hosts to those. Might mean some slight downtime on the website cert while that gets re-generated perhaps (or some other hidden issue crops up).

BTW we don't use the CF proxy for .io - in fact we found out we can't with GitHub Pages as it breaks their cert renewal. The proxy is only for .app at the moment so that it can do the http redirects I think.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, looking at the Cloudflare config- I'd forgotten that it works using 301 redirects. For some reason I thought it had some DNS wildcard capability. So no .app for directories right now I'm afraid.

301 redirects are a HTTP-only concept, and don't apply when just resolving names in DNS. We can do all we need using CNAMEs or parallel A records (and AAAA when we're ready).

Copy link
Copy Markdown
Member

@gilgongo gilgongo May 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK so I can try this:

  1. Export the .io zone file
  2. Change all .io references in the exported file to .app
  3. Remove any TXT records that have keys relating to .io (eg _github-challenge-jamulussoftware)
  4. Delete all the current zone entries in .app
  5. Import the new zone file into .app
  6. Add TXT records with new keys for .app
  7. Remove the www 301 redirect and switch Github Pages over to using .app

The worst that can happen is that the .app version of the website stops responding while it gets sorted out, but .io will be unaffected. Then once it's all working for .app, we change all the relevant CNAMEs in .io to .app.

Copy link
Copy Markdown
Member Author

@ann0see ann0see May 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. Maybe we could rather wait for the main website? So just set all the directories as .app instead.
This means duplicating only the cnames set for the .app zone similar to what we have in .io

Then wait a day.
Then put the CNAMEs in .io to .app

Don't change anything on GitHub pages.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'd just copy the Directory .io entries over as .app entries -- export both zones, extract the Directories from .io, rename to .app, add to the .app zone file, reimport the .app zone file. That should give two DNS entries for each target without any chance of anything breaking.

Copy link
Copy Markdown
Member

@softins softins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine and runs as expected, for both Client and Server modes.

@ann0see ann0see merged commit 2496596 into jamulussoftware:main May 19, 2026
18 of 19 checks passed
@github-project-automation github-project-automation Bot moved this from Waiting on Team to Done in Tracking May 19, 2026
@ann0see ann0see deleted the directoryAsia branch May 19, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Introduce new Asian directory server

4 participants