{
  "name": "msd-broken-link-checker",
  "description": "A command-line tool for checking broken links on MSD portal websites using Python 3.13",
  "keywords": [
    "python",
    "python3.13",
    "link-checker",
    "msd",
    "cron"
  ],
  "repository": "https://github.com/josemedina/msd_broken_link_checker",
  "success_url": "/",
  "scripts": {
    "dokku": {
      "predeploy": "echo 'Skipping predeploy script to avoid disk space issues'"
    }
  },
  "buildpacks": [
    {
      "url": "https://github.com/heroku/heroku-buildpack-python"
    }
  ],
  "env": {
    "PYTHON_VERSION": {
      "description": "Python version to use",
      "value": "3.13.0"
    },
    "MSD_USERNAME": {
      "description": "Username for the MSD portal"
    },
    "MSD_PASSWORD": {
      "description": "Password for the MSD portal"
    },
    "SMTP_SERVER": {
      "description": "SMTP server address for sending email reports"
    },
    "SMTP_PORT": {
      "description": "SMTP server port",
      "value": "587"
    },
    "EMAIL_SENDER": {
      "description": "Email address to send reports from"
    },
    "EMAIL_USERNAME": {
      "description": "Username for SMTP authentication (if different from sender)"
    },
    "EMAIL_PASSWORD": {
      "description": "Password for the email account"
    },
    "EMAIL_RECIPIENTS": {
      "description": "Comma-separated list of recipients for the reports"
    }
  },
  "formation": {
    "web": {
      "quantity": 1,
      "size": "standard-1x"
    }
  },
  "cron": [
    {
      "command": "cd /app/app && python app_daemon.py --excel URLs.xlsx --max-retries 3 --retry-timeout-multiplier 2.0",
      "schedule": "0 5 * * 1,3,5"
    },
    {
      "command": "cd /app/app && python app_daemon.py --excel URLs_without_login.xlsx --without-login",
      "schedule": "30 5 * * 1,3,5"
    }
  ],
  "dokku": {
    "resources": {
      "storage": "2G",
      "memory": "1024M",
      "swap": "2G"
    }
  }
} 