Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template Cheverato Added #612

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added templates/chevereto/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/chevereto/assets/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions templates/chevereto/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import { Output, randomPassword, Services } from "~templates-utils";
import { Input } from "./meta";

export function generate(input: Input): Output {
const services: Services = [];
const databasePassword = randomPassword();

services.push({
type: "app",
data: {
serviceName: input.appServiceName,
env: [
`CHEVERETO_DB_HOST=$(PROJECT_NAME)_${input.appServiceName}-mysql`,
`CHEVERETO_DB_USER=mysql`,
`CHEVERETO_DB_PASS=${databasePassword}`,
`CHEVERETO_DB_PORT=3306`,
`CHEVERETO_DB_NAME=$(PROJECT_NAME)`,
`CHEVERETO_HOSTNAME=$(PRIMARY_DOMAIN)`,
`CHEVERETO_HOSTNAME_PATH=/`,
`CHEVERETO_HTTPS=0`,
`CHEVERETO_MAX_POST_SIZE=2G`,
`CHEVERETO_MAX_UPLOAD_SIZE=2G`,
`#CHEVERETO_SERVICING=server # uncomment to enable application filesystem upgrades`,
].join("\n"),
source: { type: "image", image: input.appServiceImage },
domains: [
{
host: "$(EASYPANEL_DOMAIN)",
port: 80,
},
],
mounts: [
{
type: "volume",
name: "storage",
mountPath: "/var/www/html/images/",
},
],
},
});

services.push({
type: "mysql",
data: {
serviceName: `${input.appServiceName}-mysql`,
password: databasePassword,
},
});

return { services };
}
75 changes: 75 additions & 0 deletions templates/chevereto/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Chevereto
description:
Chevereto is a powerful, self-hosted image hosting platform designed for
individuals, communities, and businesses. It allows users to upload, organize,
and share images effortlessly. With a clean interface and a wide range of
customization options, Chevereto supports private albums, multi-language
capabilities, and robust file management, making it the ultimate solution for
image hosting.
instructions: Open the nginx domain to access Chevereto
changeLog:
- date: 2024-11-22
description: First Release
links:
- label: Github
url: https://github.com/Chevereto/Chevereto-Free
- label: Documentation
url: https://v3-docs.chevereto.com/
- label: Demo
url: https://demo.chevereto.com/
contributors:
- name: Ahson Shaikh
url: https://github.com/Ahson-Shaikh
schema:
type: object
required:
- appServiceName
- appServiceImage
properties:
appServiceName:
type: string
title: App Service Name
default: chevereto
appServiceImage:
type: string
title: App Service Image
default: chevereto/chevereto:4
benefits:
- title: Easy Image Hosting
description:
Chevereto provides an intuitive platform for uploading and managing
images, with support for bulk uploads and organization features.
- title: Customizable and Extensible
description:
Chevereto offers a wide range of customization options, including themes
and API access, to tailor the platform to your needs.
- title: Multi-Language and Multi-User Support
description:
Operate in multiple languages and create user accounts with varying
permission levels, perfect for collaborative environments.
features:
- title: Private and Public Albums
description:
Organize images into private or public albums with advanced privacy
controls.
- title: Drag-and-Drop Uploads
description:
Easily upload images by dragging and dropping them into the platform.
- title: Multi-User Capabilities
description:
Allow multiple users to upload and manage their own images securely within
the platform.
- title: Customizable Appearance
description:
Adjust themes, colors, and layouts to align with your personal or business
branding.
- title: Direct Image Links
description:
Quickly generate direct links for sharing images across social media and
other platforms.
tags:
- Image Hosting
- File Management
- Open Source
- Multi-User
- Private Albums