home.social

#staticwebserver — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #staticwebserver, aggregated by home.social.

fetched live
  1. If you use traefik: What solutions do you use to show a "Temporarily unavailable" page?

    Example: I update a service, the migration goes wrong and I need to fix it. No biggy, it takes about 30 minutes but I want to inform users that happen to visit the site at that time.

    By default Traefik shows a 404 but that is misleading to me.

    My current solution is, to spin up a simple html status page in another docker container.

    services:
      notfellchen-down:
        image: docker.io/joseluisq/static-web-server:2
        container_name: "notfellchen.org"
        restart: unless-stopped
        environment:
          # Note: those envs are customizable but also optional
          - SERVER_PORT=8080
          - SERVER_ROOT=/public
          - SERVER_LOG_LEVEL=info
        volumes:
          - ./public:/public
        labels:
          - "traefik.enable=true"
          - "traefik.docker.network=traefik"
          - "traefik.http.routers.static-notfellchen-down.rule=Host(`notfellchen.org`)"
          - "traefik.http.routers.static-notfellchen-down.service=static-notfellchen-down-service"
          - "traefik.http.routers.static-notfellchen-down.entrypoints=web-secure"
          - "traefik.http.routers.static-notfellchen-down.tls=true"
          - "traefik.http.routers.static-notfellchen-down.tls.certResolver=default"
          - "traefik.http.services.static-notfellchen-down-service.loadbalancer.server.port=8080"
        networks:
          - traefik
    
    networks:
      traefik:
        name: "traefik"
        external: true
    

    My problem with this solution: It returns HHT-Stauts-Code 200: Ok where it should be 503: Temporarily Unavailable.

    How do you solve that?
    #Traefik #Selfhosting #StaticWebServer

  2. 🚀✨ A static web server in COBOL? Well, someone's finally solved the problem of "What do I do with all this leftover punch card stock?" 😂🔍 No worries, the '90s called, and they just want their irrelevant tech stack back! 📟💾
    github.com/jmsdnns/webbol #staticwebserver #COBOL #punchcards #90sreboot #techhumor #retrotech #HackerNews #ngated