goonblog.thevakhovske.eu.org {
    root * /var/www/gooneral-wheelchair/dist
    encode gzip zstd
    file_server

    # Handle routes for stuffs
    rewrite /posts* /index.html
    rewrite /login* /index.html
    rewrite /admin* /index.html

    # API routes - proxy to backend
    handle /api/* {
        reverse_proxy localhost:3001
    }

    # Health check endpoint
    handle /health {
        reverse_proxy localhost:3001
    }
}
