added apps!
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
# =============================================================================
|
||||
# .felhom.yml - App metadata for felhom-controller
|
||||
# =============================================================================
|
||||
|
||||
# --- Display info (shown on dashboard) ---
|
||||
display_name: "Zipline"
|
||||
description: "ShareX/Flameshot szerver - screenshot és fájlmegosztás"
|
||||
category: "files"
|
||||
subdomain: "img"
|
||||
slug: "zipline"
|
||||
|
||||
# --- Resource hints (displayed on deploy screen) ---
|
||||
resources:
|
||||
mem_request: "100M"
|
||||
mem_limit: "512M"
|
||||
pi_compatible: false
|
||||
needs_hdd: false
|
||||
|
||||
# --- Deploy fields (first deployment only) ---
|
||||
deploy_fields:
|
||||
- env_var: DOMAIN
|
||||
label: "Domain"
|
||||
type: domain
|
||||
description: "A szerver domain neve"
|
||||
locked_after_deploy: true
|
||||
|
||||
- env_var: CORE_SECRET
|
||||
label: "Titkosítási kulcs"
|
||||
type: secret
|
||||
generate: "hex:32"
|
||||
locked_after_deploy: true
|
||||
|
||||
- env_var: DB_PASSWORD
|
||||
label: "Adatbázis jelszó"
|
||||
type: secret
|
||||
generate: "password:24"
|
||||
locked_after_deploy: true
|
||||
|
||||
# --- App info (info page content) ---
|
||||
app_info:
|
||||
tagline: "Screenshot és fájlmegosztó szerver ShareX/Flameshot integrációval"
|
||||
default_creds: "admin / zipline"
|
||||
docs_url: "https://zipline.diced.sh/docs/"
|
||||
|
||||
use_cases:
|
||||
- 'Screenshotok automatikus feltöltése ShareX/Flameshot-ból'
|
||||
- 'URL rövidítés és szöveg megosztás (paste)'
|
||||
- 'Galéria nézet és album kezelés'
|
||||
- 'API támogatás egyedi integrációkhoz'
|
||||
- 'Felhasználói fiókok és meghívó rendszer'
|
||||
|
||||
first_steps:
|
||||
- 'Nyisd meg az img.DOMAIN címet a böngészőben'
|
||||
- 'Jelentkezz be: admin / zipline'
|
||||
- 'Változtasd meg azonnal a jelszót'
|
||||
- 'Konfiguráld a ShareX-et vagy Flameshot-ot az API URL-lel'
|
||||
- 'Tölts fel egy screenshot-ot a teszteléshez'
|
||||
|
||||
prerequisites:
|
||||
- 'ShareX (Windows) vagy Flameshot (Linux) ajánlott a screenshot feltöltéshez'
|
||||
@@ -0,0 +1,79 @@
|
||||
# Zipline - ShareX/Flameshot szerver - screenshot és fájlmegosztás
|
||||
# Domain: img.${DOMAIN}
|
||||
# Database: postgres
|
||||
# RAM: ~100M (mem_limit: 512M) | Pi-compatible: No
|
||||
#
|
||||
# Environment variables:
|
||||
# DOMAIN - Your domain (e.g., demo-felhom.eu)
|
||||
# CORE_SECRET - Titkosítási kulcs (auto-generated)
|
||||
# DB_PASSWORD - Adatbázis jelszó (auto-generated)
|
||||
|
||||
services:
|
||||
zipline:
|
||||
image: ghcr.io/diced/zipline:4.0.0
|
||||
container_name: zipline
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
zipline-postgres:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
- TZ=Europe/Budapest
|
||||
- CORE_SECRET=${CORE_SECRET}
|
||||
- CORE_DATABASE_URL=postgresql://zipline:${DB_PASSWORD}@zipline-postgres:5432/zipline
|
||||
volumes:
|
||||
- zipline_uploads:/zipline/uploads
|
||||
- zipline_public:/zipline/public
|
||||
networks:
|
||||
- traefik-public
|
||||
- zipline-internal
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 512M
|
||||
healthcheck:
|
||||
test: ["CMD", "node", "-e", "const http = require('http'); http.get('http://localhost:3000/api/health', (r) => { process.exit(r.statusCode === 200 ? 0 : 1) }).on('error', () => process.exit(1))"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.zipline.rule=Host(`img.${DOMAIN}`)"
|
||||
- "traefik.http.routers.zipline.entrypoints=websecure"
|
||||
- "traefik.http.routers.zipline.tls=true"
|
||||
- "traefik.http.routers.zipline.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.zipline.loadbalancer.server.port=3000"
|
||||
|
||||
zipline-postgres:
|
||||
image: postgres:16-alpine
|
||||
container_name: zipline-postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POSTGRES_USER=zipline
|
||||
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
||||
- POSTGRES_DB=zipline
|
||||
- TZ=Europe/Budapest
|
||||
volumes:
|
||||
- zipline_postgres_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- zipline-internal
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 256M
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U zipline -d zipline"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 20s
|
||||
|
||||
volumes:
|
||||
zipline_postgres_data:
|
||||
zipline_public:
|
||||
zipline_uploads:
|
||||
|
||||
networks:
|
||||
traefik-public:
|
||||
external: true
|
||||
zipline-internal:
|
||||
Reference in New Issue
Block a user