Overview
German Element manufactures industrial heating elements to order — cartridge, tubular, immersion, band, flat, flexible, radiant and high-temperature — for water, oil, air, tanks, moulds, furnaces and labs.
That makes it an awkward thing to sell from a page. Nothing has a fixed price, and the buyer is an engineer who does not want a brochure; they want to know which family fits their job and what power it has to be. So the site is built as a catalogue that answers questions: 31 element types across 8 families, nine application routes for people who know the job but not the part, a five-question selection guide, and calculators that do the arithmetic in the page.
The second half of the job was getting it to the people who buy. Most customers are in the client’s home country, and the site lived only in France. The link across that border is slow and filtered, and the country can be cut off from the rest of the internet — a site that only lives abroad disappears for them exactly then. The ready-made fix, a paid “route by country” service, was a poor fit: foreign services can stop working there at any time, which is the moment it is needed.
So the site now runs on two servers, one on each side of the border, and its own nameservers send each visitor to the right one. Local visitors get the local server; everyone else, Google included, gets France.
Tech Stack
- Astro.js — a content-heavy catalogue with no client framework to ship
- Tailwind CSS + DaisyUI — one design system, light and dark
- Self-hosted variable fonts — Vazirmatn and Inter, committed to the repo, because Google Fonts is unreliable in the client’s country
- Two Linux servers, one in France and one local, set up from bare: firewall, swap, Docker
- Coolify on each server, separately — pulls from GitHub and builds on every push, so one push deploys both
- PowerDNS — the site’s own two nameservers, one per country, answering by the visitor’s country (GeoDNS) from a free country database refreshed monthly
- Let’s Encrypt — HTTPS on both servers, renewed automatically
Features
- Full English/Persian site with real RTL, not a mirrored stylesheet
- Power and watt-density calculators, plus a quick estimate on the homepage
- A selection guide that narrows the range through five questions, and a side-by-side comparison of element types
- Three ways to order a custom part: by drawing, by sample, or by describing the application
- Knowledge base — selection guides, FAQs and articles, which is also what the search traffic comes for
- Quote request, drawing upload, phone and WhatsApp — an engineer gets to a human in one step
- Light and dark mode, responsive from phone to desktop
- Served from inside the country to local visitors, with an on/off switch for the local server written into the DNS records
/server.txtanswers in one word, so anyone can see which server they reached
The hard parts
- The local server could not get its certificate the usual way. Let’s Encrypt checks ownership by visiting the site from abroad — and GeoDNS sends that visit to France. It proves ownership through a DNS record instead, written to both nameservers through a login that can run exactly one command.
- Builds failed on the local server only, because a signature service used while installing the build tools refuses addresses from that country. That one check is off there; every download is still checked against its fingerprint.
- Docker quietly opened ports the firewall said were closed. Closed again in Docker’s own rules.
- Each server has its own Coolify. A local server run from France would stop updating exactly when the border link breaks.
- The switch-over changed nothing on day one. Every DNS record came across with the local switch off, then the certificate, then the switch on — each step undoable, none of them able to take the site down.
Outcome
Built on 24 October 2026, switched on the next day, and confirmed by a real local visitor three days later.
- Local visitors are served from inside the country; a change reaches them within five minutes
- One
git pushdeploys both servers - Foreign visitors and Google never depend on the local server
- Going back to the old setup is one change at the domain registrar
Honest limits: if the local server dies, someone flips the switch by hand, and a visitor whose phone uses Cloudflare’s 1.1.1.1 resolver is sent to France.
Lighthouse on the English home page, phone setting (2 November 2026): 97 Performance, 100/100 SEO, 100/100 Best Practices, 91 Accessibility.