# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Jellyfin
spec:
    description: Free Software Media System for managing and streaming your media.
    icon: https://avatars.githubusercontent.com/u/45698031?s=48&v=4
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain you want to bind to Jellyfin.
    tags:
        - Media
        - Entertainment
        - Video
    readme: "# Jellyfin \U0001F3AC\n\n[Jellyfin](https://github.com/jellyfin/jellyfin) is a Free Software Media System that puts you in control of managing and streaming your media.  \nIt is an open-source alternative to Emby and Plex, allowing you to serve your media from a dedicated server to any device.\n\n## \U0001F4C2 Uploading Media on Zeabur\n\nAfter deploying on Zeabur, you can easily manage your media files:\n\n- Use **Files** in the dashboard to drag and drop your media files into the `/media` folder. Then, create a new Library in Jellyfin and point it to that media folder. Jellyfin will automatically detect and display the new content.\n\n- If you need additional folders, go to **Volumes → Mount Volume** and configure, for example:  \n  - **Volume ID**: `picture`  \n  - **Mount Directory**: `/picture`  \n\n  Then click **Mount Volume**. Any media files uploaded to this folder will also be available in Jellyfin once you add it as a Library path."
    services:
        - name: Jellyfin
          icon: https://avatars.githubusercontent.com/u/45698031?s=48&v=4
          template: PREBUILT
          spec:
            id: jellyfin
            source:
                image: jellyfin/jellyfin:latest
            ports:
                - id: web
                  port: 8096
                  type: HTTP
            volumes:
                - id: config
                  dir: /config
                - id: cache
                  dir: /cache
                - id: media
                  dir: /media
            env:
                TZ:
                    default: UTC
          domainKey: PUBLIC_DOMAIN
localization:
    zh-TW:
        description: Jellyfin 是一個免費的軟體媒體系統，能讓你完全掌控並串流自己的媒體內容。
        variables:
            - key: PUBLIC_DOMAIN
              type: DOMAIN
              name: 網域
              description: 你想將 Jellyfin 綁在哪個網域上？
        readme: "# Jellyfin \U0001F3AC\n\n[Jellyfin](https://github.com/jellyfin/jellyfin) 是一個免費的軟體媒體系統，讓你完全掌控並串流自己的媒體內容。  \n它是 Emby 和 Plex 的開源替代方案，讓你能從伺服器將媒體提供給任何裝置。\n\n## \U0001F4C2 在 Zeabur 上傳媒體\n\n在 Zeabur 部署後，你可以輕鬆管理媒體檔案：\n\n- 在控制台使用 **檔案**，將媒體檔案拖曳到 `/media` 資料夾中。接著在 Jellyfin 中建立一個新的 **Library（媒體庫）** 並指向該資料夾，Jellyfin 就會自動偵測並顯示新的內容。\n\n- 如果需要額外的資料夾，可以到 **硬碟 → 掛載硬碟** 新增，例如：  \n  - **硬碟 ID**：`picture`  \n  - **掛載目錄**：`/picture`  \n\n  然後點擊 **掛載硬碟**。之後將媒體檔案上傳到該資料夾，並在 Jellyfin 的 Library 新增此路徑，即可顯示該資料夾中的內容。"
