# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Epic Games Free Games
spec:
    description: |
        Automatically find and claim free games from the Epic Games Store. Supports multiple accounts, scheduled runs, and a web portal for completing captchas. Notifications via Discord, Telegram, email, and more.
    coverImage: https://avatars.githubusercontent.com/u/41992204
    icon: https://avatars.githubusercontent.com/u/41992204
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access the Epic Games Free Games web portal
    tags:
        - Tool
    readme: |
        # Epic Games Free Games

        Automatically login and find available free games on the Epic Games Store. The web portal sends prepopulated checkout links so you can complete purchases after logging in. Supports multiple accounts and scheduled runs.

        ## What You Can Do After Deployment

        1. **Visit your domain** — the web portal loads where you manage accounts and complete captchas
        2. **Add your Epic Games account** — configure your email in the config volume
        3. **Set a schedule** — runs automatically on a cron schedule (default: every 6 hours)
        4. **Complete captchas** — when needed, the portal presents captchas for you to solve
        5. **Set up notifications** (optional) — get notified via Discord, Telegram, email, Pushover, Gotify, ntfy, or Bark

        ## Key Features

        - Automatic detection and claiming of free Epic Games Store titles
        - Web portal for account login and captcha completion
        - Cron-based scheduling with configurable intervals
        - Multiple account support
        - Notifications via Discord, Telegram, email, Apprise, Pushover, Gotify, Home Assistant, Bark, and ntfy
        - JSON5 configuration with environment variable overrides
        - Persistent login sessions across restarts

        ## Configuration

        - **RUN_ON_STARTUP** — set to `true` to check for free games immediately on startup
        - **CRON_SCHEDULE** — cron expression for check frequency (default: `0 0,6,12,18 * * *`)
        - **BASE_URL** — set to your public domain URL for the web portal to work correctly
        - **Config file** — mount a `config.json5` to `/usr/app/config` for full configuration including accounts and notifiers

        ## License

        ISC — [GitHub](https://github.com/claabs/epicgames-freegames-node)
    services:
        - name: epicgames-freegames
          icon: https://avatars.githubusercontent.com/u/41992204
          template: PREBUILT_V2
          spec:
            source:
                image: ghcr.io/claabs/epicgames-freegames-node:v5.1.0
            ports:
                - id: web
                  port: 3000
                  type: HTTP
            volumes:
                - id: config
                  dir: /usr/app/config
            env:
                BASE_URL:
                    default: ${ZEABUR_WEB_URL}
                CRON_SCHEDULE:
                    default: 0 0,6,12,18 * * *
                RUN_ON_STARTUP:
                    default: "true"
                TZ:
                    default: UTC
            healthCheck:
                type: HTTP
                port: web
                http:
                    path: /
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            Detecta y reclama automaticamente juegos gratis de la Epic Games Store. Soporta multiples cuentas, ejecuciones programadas y un portal web para completar captchas. Notificaciones via Discord, Telegram, email y mas.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder al portal web de Epic Games Free Games
        readme: |
            # Epic Games Free Games

            Inicia sesion automaticamente y busca juegos gratis en la Epic Games Store. El portal web envia enlaces de pago prellenados para completar la obtencion tras iniciar sesion.

            ## Que puedes hacer despues del despliegue

            1. **Visita tu dominio** — portal web para gestionar cuentas y completar captchas
            2. **Agrega tu cuenta de Epic Games** — configura tu email en el archivo de configuracion
            3. **Configura el horario** — ejecucion automatica por cron (por defecto: cada 6 horas)
            4. **Completa captchas** — cuando sea necesario, el portal presenta captchas
            5. **Configura notificaciones** (opcional) — via Discord, Telegram, email, etc.

            ## Caracteristicas principales

            - Deteccion y reclamo automatico de juegos gratis
            - Portal web para login y captchas
            - Programacion Cron configurable
            - Soporte para multiples cuentas
            - Multiples canales de notificacion
            - Sesiones de login persistentes

            ## Licencia

            ISC — [GitHub](https://github.com/claabs/epicgames-freegames-node)
    id-ID:
        description: |
            Otomatis mendeteksi dan mengklaim game gratis dari Epic Games Store. Mendukung banyak akun, jadwal otomatis, dan portal web untuk menyelesaikan captcha. Notifikasi via Discord, Telegram, email, dan lainnya.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses portal web Epic Games Free Games
        readme: |
            # Epic Games Free Games

            Otomatis login dan mencari game gratis di Epic Games Store. Portal web menyediakan tautan checkout yang sudah terisi untuk menyelesaikan klaim setelah login.

            ## Apa yang bisa dilakukan setelah deploy

            1. **Buka domain** — portal web untuk mengelola akun dan menyelesaikan captcha
            2. **Tambahkan akun Epic Games** — konfigurasi email di file konfigurasi
            3. **Atur jadwal** — berjalan otomatis sesuai cron (default: setiap 6 jam)
            4. **Selesaikan captcha** — saat diperlukan, portal menampilkan captcha
            5. **Atur notifikasi** (opsional) — via Discord, Telegram, email, dll.

            ## Fitur utama

            - Deteksi dan klaim otomatis game gratis Epic Games Store
            - Portal web untuk login akun dan captcha
            - Jadwal Cron yang dapat dikonfigurasi
            - Dukungan banyak akun
            - Berbagai saluran notifikasi
            - Sesi login tetap tersimpan setelah restart

            ## Lisensi

            ISC — [GitHub](https://github.com/claabs/epicgames-freegames-node)
    ja-JP:
        description: |
            Epic Games ストアの無料ゲームを自動検出・取得。複数アカウント、スケジュール実行、CAPTCHA 完了用ウェブポータルに対応。Discord、Telegram、メールなどで通知。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: Epic Games Free Games ウェブポータルにアクセスするためのドメイン
        readme: |
            # Epic Games Free Games

            Epic Games ストアの無料ゲームを自動ログイン・検出。ウェブポータルで事前入力されたチェックアウトリンクを提供し、ログイン後に取得を完了できます。

            ## デプロイ後にできること

            1. **ドメインにアクセス** — アカウント管理と CAPTCHA 完了用のウェブポータル
            2. **Epic Games アカウントを追加** — 設定ファイルにメールアドレスを設定
            3. **スケジュールを設定** — cron スケジュールで自動実行（デフォルト：6時間ごと）
            4. **CAPTCHA を完了** — 必要時にポータルで CAPTCHA を解答
            5. **通知を設定**（オプション）— Discord、Telegram、メールなどで通知

            ## 主な機能

            - Epic Games ストアの無料ゲームを自動検出・取得
            - アカウントログインと CAPTCHA 用ウェブポータル
            - 設定可能な Cron スケジュール
            - 複数アカウント対応
            - 多様な通知チャンネル
            - 再起動後もログインセッション維持

            ## ライセンス

            ISC — [GitHub](https://github.com/claabs/epicgames-freegames-node)
    ko-KR:
        description: |
            Epic Games 스토어의 무료 게임을 자동 감지 및 수령. 다중 계정, 예약 실행, CAPTCHA 완료용 웹 포털 지원. Discord, Telegram, 이메일 등으로 알림.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: Epic Games Free Games 웹 포털에 접속할 도메인
        readme: |
            # Epic Games Free Games

            Epic Games 스토어의 무료 게임을 자동 로그인 및 검색. 웹 포털에서 미리 입력된 결제 링크를 제공하여 로그인 후 수령을 완료할 수 있습니다.

            ## 배포 후 할 수 있는 것

            1. **도메인 접속** — 계정 관리 및 CAPTCHA 완료용 웹 포털
            2. **Epic Games 계정 추가** — 설정 파일에 이메일 구성
            3. **스케줄 설정** — cron 스케줄로 자동 실행 (기본: 6시간마다)
            4. **CAPTCHA 완료** — 필요 시 포털에서 CAPTCHA 해결
            5. **알림 설정** (선택) — Discord, Telegram, 이메일 등으로 알림

            ## 주요 기능

            - Epic Games 스토어 무료 게임 자동 감지 및 수령
            - 계정 로그인 및 CAPTCHA용 웹 포털
            - 설정 가능한 Cron 스케줄
            - 다중 계정 지원
            - 다양한 알림 채널
            - 재시작 후 로그인 세션 유지

            ## 라이선스

            ISC — [GitHub](https://github.com/claabs/epicgames-freegames-node)
    th-TH:
        description: |
            ตรวจจับและรับเกมฟรีจาก Epic Games Store โดยอัตโนมัติ รองรับหลายบัญชี การทำงานตามกำหนดเวลา และพอร์ทัลเว็บสำหรับทำ captcha แจ้งเตือนผ่าน Discord, Telegram, อีเมล และอื่นๆ
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึงพอร์ทัลเว็บ Epic Games Free Games
        readme: |
            # Epic Games Free Games

            เข้าสู่ระบบอัตโนมัติและค้นหาเกมฟรีบน Epic Games Store พอร์ทัลเว็บให้ลิงก์ชำระเงินที่กรอกไว้แล้วเพื่อรับเกมหลังจากเข้าสู่ระบบ

            ## สิ่งที่ทำได้หลังจากติดตั้ง

            1. **เข้าสู่โดเมน** — พอร์ทัลเว็บสำหรับจัดการบัญชีและทำ captcha
            2. **เพิ่มบัญชี Epic Games** — กำหนดค่าอีเมลในไฟล์คอนฟิก
            3. **ตั้งเวลา** — ทำงานอัตโนมัติตาม cron (ค่าเริ่มต้น: ทุก 6 ชั่วโมง)
            4. **ทำ captcha** — เมื่อจำเป็น พอร์ทัลจะแสดง captcha ให้แก้ไข
            5. **ตั้งค่าการแจ้งเตือน** (ทางเลือก) — ผ่าน Discord, Telegram, อีเมล ฯลฯ

            ## คุณสมบัติหลัก

            - ตรวจจับและรับเกมฟรี Epic Games Store อัตโนมัติ
            - พอร์ทัลเว็บสำหรับล็อกอินและ captcha
            - ตั้งเวลา Cron ที่กำหนดเองได้
            - รองรับหลายบัญชี
            - ช่องทางแจ้งเตือนหลากหลาย
            - เซสชันล็อกอินคงอยู่หลังรีสตาร์ท

            ## สัญญาอนุญาต

            ISC — [GitHub](https://github.com/claabs/epicgames-freegames-node)
    zh-CN:
        description: |
            自动检测并领取 Epic Games 商店的免费游戏。支持多账号、定时执行，以及用于完成验证码的网页门户。可通过 Discord、Telegram、邮件等接收通知。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 Epic Games Free Games 网页门户的域名
        readme: |
            # Epic Games Free Games

            自动登录并查找 Epic Games 商店的免费游戏。网页门户提供预填结账链接，登录后即可完成领取。支持多账号和定时执行。

            ## 部署后可以做什么

            1. **打开域名** — 网页门户用于管理账号和完成验证码
            2. **添加 Epic Games 账号** — 在配置文件中设置你的邮箱
            3. **设置定时任务** — 自动按 cron 计划执行（默认：每 6 小时）
            4. **完成验证码** — 需要时，门户会显示验证码供你解答
            5. **设置通知**（可选）— 通过 Discord、Telegram、邮件等接收通知

            ## 主要功能

            - 自动检测和领取 Epic Games 商店免费游戏
            - 网页门户供账号登录和验证码完成
            - 可配置的 Cron 定时任务
            - 多账号支持
            - 多种通知渠道
            - 重启后保持登录状态

            ## 许可证

            ISC — [GitHub](https://github.com/claabs/epicgames-freegames-node)
    zh-TW:
        description: |
            自動偵測並領取 Epic Games 商店的免費遊戲。支援多帳號、排程執行，以及用於完成驗證碼的網頁入口。可透過 Discord、Telegram、Email 等接收通知。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 Epic Games Free Games 網頁入口的網域
        readme: |
            # Epic Games Free Games

            自動登入並尋找 Epic Games 商店的免費遊戲。網頁入口提供預填結帳連結，登入後即可完成領取。支援多帳號和排程執行。

            ## 部署後可以做什麼

            1. **開啟網域** — 網頁入口用於管理帳號和完成驗證碼
            2. **新增 Epic Games 帳號** — 在設定檔中配置你的 Email
            3. **設定排程** — 自動依 cron 排程執行（預設：每 6 小時）
            4. **完成驗證碼** — 需要時，入口會顯示驗證碼供你解答
            5. **設定通知**（選用）— 透過 Discord、Telegram、Email 等接收通知

            ## 主要功能

            - 自動偵測和領取 Epic Games 商店免費遊戲
            - 網頁入口供帳號登入和驗證碼完成
            - 可配置的 Cron 排程
            - 多帳號支援
            - 多種通知管道（Discord、Telegram、Email、Gotify、ntfy 等）
            - 重啟後保持登入狀態

            ## 授權

            ISC — [GitHub](https://github.com/claabs/epicgames-freegames-node)
