#!/bin/sh

# SPDX-FileCopyrightText: 2024 Helge
#
# SPDX-License-Identifier: MIT

DOMAIN=$1

if [ -z ${DOMAIN} ]; then
    echo "You must specify a domain as an argument."
    echo "When using port forwarding in docker set the domain to localhost:port"
    echo "e.g.: docker run -p 2909:80 -ti pasture verify_actor localhost:2909"
    exit 1
fi

python -m fediverse_pasture.verify_actor --port 80 --domain $DOMAIN
