module.exports = {
  platform: 'gitea',
  endpoint: 'https://git.mafyuh.dev/api/v1/',
  gitAuthor: 'Renovate Bot <bot@mafyuh.dev>',
  username: 'renovatebot',
  autodiscover: true,
  onboardingConfig: {
    $schema: 'https://docs.renovatebot.com/renovate-schema.json',
    extends: [
      'config:recommended'
    ]
  },
  "commitMessagePrefix": ":arrow_up:",
  "packageRules": [
    {
      "updateTypes": ["patch", "digest", "bump", "minor"]
    },
    {
      "matchDepNames": ["ghcr.io/linuxserver/doplarr"],
      "customChangelogUrl": "https://github.com/linuxserver/docker-doplarr/releases"
    },
    {
      "matchDepNames": ["ghcr.io/open-webui/open-webui"],
      "customChangelogUrl": "https://github.com/open-webui/open-webui/releases"
    },
    {
      "matchDepNames": ["ollama/ollama"],
      "customChangelogUrl": "https://github.com/ollama/ollama/releases"
    },
    {
      "matchDepNames": ["docker.mafyuh.xyz/renovate/renovate"],
      "customChangelogUrl": "https://github.com/renovatebot/renovate/releases"
    },
    {
      "matchDepNames": ["docker.mafyuh.xyz/fallenbagel/jellyseerr"],
      "customChangelogUrl": "https://github.com/Fallenbagel/jellyseerr/releases"
    },
    {
      "matchDepNames": ["docker.mafyuh.xyz/binhex/arch-qbittorrentvpn"],
      "customChangelogUrl": "https://github.com/binhex/arch-qbittorrentvpn/releases"
    },
    {
      "matchDepNames": ["ghcr.io/flaresolverr/flaresolverr"],
      "customChangelogUrl": "https://github.com/FlareSolverr/FlareSolverr/releases"
    },
    {
      "matchDepNames": ["mindsdb/mindsdb"],
      "customChangelogUrl": "https://github.com/mindsdb/mindsdb/releases"
    },
    {
      "matchDepNames": ["docker.mafyuh.xyz/sonatype/nexus3"],
      "customChangelogUrl": "https://help.sonatype.com/en/2024-release-notes.html"
    },
    {
      "matchDepNames": ["docker.mafyuh.xyz/adguard/adguardhome"],
      "customChangelogUrl": "https://github.com/AdguardTeam/AdGuardHome/releases"
    },
    {
      "matchDepNames": ["docker.mafyuh.xyz/jc21/nginx-proxy-manager"],
      "customChangelogUrl": "https://github.com/NginxProxyManager/nginx-proxy-manager/releases"
    },
    {
      "matchDepNames": ["docker.mafyuh.xyz/louislam/uptime-kuma"],
      "customChangelogUrl": "https://github.com/louislam/uptime-kuma/releases"
    },
    {
      "matchDepNames": ["docker.mafyuh.xyz/vaultwarden/server"],
      "customChangelogUrl": "https://github.com/dani-garcia/vaultwarden/releases"
    },
    {
      "matchDepNames": ["docker.mafyuh.xyz/gotify/server-arm7"],
      "customChangelogUrl": "https://github.com/gotify/server/releases"
    },
    {
      "matchDepNames": ["docker.mafyuh.xyz/vaultwarden/server"],
      "customChangelogUrl": "https://github.com/hrfee/jfa-go/releases"
    },
    {
      "matchDepNames": ["ghcr.io/goauthentik/server"],
      "customChangelogUrl": "https://github.com/goauthentik/authentik/releases"
    },
    {
      "matchDepNames": ["docker.mafyuh.xyz/cloudflare/cloudflared"],
      "customChangelogUrl": "https://github.com/cloudflare/cloudflared/releases"
    },
    {
      "matchDepNames": ["code.forgejo.org/forgejo/runner"],
      "customChangelogUrl": "https://code.forgejo.org/forgejo/runner/releases"
    },
    {
      "matchDepNames": ["ghcr.io/ajnart/homarr"],
      "customChangelogUrl": "https://github.com/ajnart/homarr/releases"
    },
    {
      "matchDepNames": ["docker.mafyuh.xyz/portainer/portainer-ee"],
      "customChangelogUrl": "https://github.com/portainer/portainer/releases"
    },
    {
      "matchDepNames": ["docker.mafyuh.xyz/twingate/connector"],
      "customChangelogUrl": "https://www.twingate.com/changelog/connector"
    },
    {
      "matchDepNames": ["onerahmet/openai-whisper-asr-webservice"],
      "customChangelogUrl": "https://github.com/ahmetoner/whisper-asr-webservice/releases"
    },
    {
      "matchDepNames": ["ghcr.io/linuxserver/bazarr"],
      "customChangelogUrl": "https://github.com/linuxserver/docker-bazarr/releases"
    },
    {
      "matchDepNames": ["ghcr.io/linuxserver/lidarr"],
      "customChangelogUrl": "https://github.com/linuxserver/docker-lidarr/releases"
    },
    {
      "matchDepNames": ["ghcr.io/linuxserver/prowlarr"],
      "customChangelogUrl": "https://github.com/linuxserver/docker-prowlarr/releases"
    },
    {
      "matchDepNames": ["ghcr.io/linuxserver/radarr"],
      "customChangelogUrl": "https://github.com/linuxserver/docker-radarr/releases"
    },
    {
      "matchDepNames": ["ghcr.io/linuxserver/sonarr"],
      "customChangelogUrl": "https://github.com/linuxserver/docker-sonarr/releases"
    },
    {
      "matchDepNames": ["ghcr.io/linuxserver/doplarr"],
      "customChangelogUrl": "https://github.com/linuxserver/docker-doplarr/releases"
    },
    {
      "matchDepNames": ["ghcr.io/ajnart/homarr"],
      "customChangelogUrl": "https://github.com/ajnart/homarr/releases"
    },
    {
      "matchDepNames": ["ghcr.io/linuxserver/syncthing"],
      "customChangelogUrl": "https://github.com/linuxserver/docker-syncthing/releases"
    },
    {
      "matchDepNames": ["ghcr.io/linuxserver/jellyfin"],
      "customChangelogUrl": "https://github.com/jellyfin/jellyfin/releases"
    }
  ],
  optimizeForDisabled: true,
  persistRepoData: true,
  repositories: [
    "mafyuh/Auto-Homelab",
    "mafyuh/iac"
  ],
  dockerUser: "1000:1000",
  hostRules: [
    {
      matchHost: 'docker.io',
      username: 'mafyuh',
      password: `${process.env.DOCKER_HUB_PASSWORD}`,
    },
  ],
};