💾 Archived View for en.arns.lt › f › gemini › 1g › split_capsule_per_language.gmi captured on 2024-08-18 at 17:08:30. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Created: 2024-07-12 Copyright: CC-BY-SA 4.0 Language: en
Inspired by: What helps me browse a personal website
After reading this nice article I got many thoughts how not to become complecated. One thing I decided to to now, other left for future my http web site. This one thing was the language mix what I had in my gemini capsule. The problem is not big and easelly solvable as the scope that I write about is devided per languages.
EN - for IT related stuff, maybe some politics what are related to global view
SGS - for writting, inner thoughts
Other languages exists, too, but them can be included into main language groups, Esperanto, Ukrainian, Russian into English group and Lithuanian, Prussian into Samogitian, because things about writting is related to language.
So, desicion has been made and I wanted to split my capsule into `arns.lt` and `en.arns.lt`. Separate atom.xml would be easier way to follow.
Process has not been so fluent :) When I had only one capsule I could expose port and serve from docker without atention to hostname but two capsules should be separated by hostname and traefik was my choice to deal with routing. After remaking code to serve easelly two capsules with separate configuration I tries to deploy and bam - I'm down :D
Traefik fix like that
services: traefik: image: traefik:v2.10 command: <...> - --entrypoints.gemini.address=:1965 <...> ports: <...> - "1965:1965" <...> gemini: container_name: arns_gemini build: gemini restart: unless-stopped labels: - traefik.enable=true - traefik.tcp.routers.arns_gemini.rule=HostSNI(`arns.lt`) - traefik.tcp.routers.arns_gemini.entrypoints=gemini - traefik.tcp.routers.arns_gemini.tls.passthrough=true
Page counter: b