{{ forgejo_domain }} {
    reverse_proxy localhost:{{ forgejo_http_port }} {
        header_down +X-Robots-Tag "none"
    }

    route /metrics {
        @local {
            remote_ip 127.0.0.1 ::1
        }

        handle @local {
            reverse_proxy localhost:{{ forgejo_http_port }}
        }

        handle {
            respond "Not Found" 404
        }
    }
}
