2025-06-14 21:57:35 +02:00
2025-06-14 21:57:35 +02:00
2025-05-29 10:19:24 +02:00
fix
2025-06-03 19:11:24 +00:00
2025-03-16 21:04:43 +00:00
2025-03-25 22:07:49 +01:00
2025-06-03 22:54:17 +02:00
2025-04-21 17:53:22 +00:00
2025-03-16 21:04:43 +00:00
2025-03-18 17:26:48 +00:00
2025-06-08 08:49:59 +00:00
2025-06-08 23:05:46 +02:00
2025-04-07 21:06:23 +00:00
2025-05-17 21:24:16 +00:00

Media Sharing App

This is a self-hosted media sharing and indexing platform designed for secure and flexible file sharing. Originally created to serve specific community needs, it is now made available for general use under an open-source license. The application supports file access via time-limited secret links, metadata indexing, and transcription-based search.

Features

  • Secret Link Sharing
    Share folders via unique URLs with expiration dates. Two levels of sharing:

    • Primary Folders (Secret Links): Centralized configuration with full admin control. Suitable for public events.
    • Subfolders (Token Links): Can be shared ad hoc, without central admin access. Ideal for limited-audience events.
  • Transcription and Search

    • Local transcription of audio files
    • Full-text search through transcripts
    • Daily indexing for search via cron job required
  • Caching and Performance

    • Data is fetched from a remote network storage via SSH
    • Server side caching for fast repeat access
    • Automatic cache invalidation for unused files
  • Privacy-Aware Analytics

    • Anonymous access logging (no IP address storage)

Requirements

  • Domain/Subdomain for app access
  • Dynamic DNS for local network tunnel access
  • Local Network Storage (Linux server or NAS with SSH and NFS support)
  • Virtual Private Server (VPS) with:
    • Docker
    • SSH
    • NFS
    • Cron

System Architecture

                         ┌───────────────────────────┐
                         │       Web Browser         │
                         │  (User / Admin Interface) │
                         └────────────┬──────────────┘
                                      │
                         ┌────────────▼──────────────┐
                         │    HTTPS (Secret Link)    │
                         │        (Traefik)          │
                         └────────────┬──────────────┘
                                      │
                         ┌────────────▼──────────────┐
                         │      Flask App (VPS)      │
                         │       Routing Layer       │
                         └────────────┬──────────────┘
                                      │
                         ┌────────────▼─────────────┐
                         │                          │
                ┌────────▼────────┐        ┌────────▼─────────┐
                │  User Views /   │        │ Admin Interface  │
                │   Token Logic   │        │  (Protected Link)│
                └────────┬────────┘        └────────┬─────────┘
                         │                          │
                 ┌───────▼──────────────────────────▼──────┐
                 │      Link Validation & Expiry Logic     │
                 └───────────────────┬─────────────────────┘
                                     │
                       ┌─────────────▼──────────────┐
                       │        Caching Layer       │
                       │     (Local file cache)     │
                       └─────────────┬──────────────┘
                                     │
                       ┌─────────────▼──────────────┐
                       │   SSH Tunnel to Storage    │
                       │   (NAS or Linux Server)    │
                       └─────────────┬──────────────┘
                                     │
                       ┌─────────────▼──────────────┐      ┌─────────────────────────────┐
                       │    Local File System       │◄─────┤ Media File Transcriber (PC) │
                       └─────────────┬──────────────┘      └─────────────────────────────┘
                                     │
                       ┌─────────────▼──────────────┐      
                       │ Daily Cron Service         │
                       │   - Index Filesystem       │      
                       │   - Index Transcription    │
                       └─────────────┬──────────────┘
                                     │
                           ┌─────────▼──────────┐
                           │   Search Engine    │
                           └────────────────────┘
  • Files are served over an SSH tunnel from NAS to the VPS.
  • Caching and indexing are performed on the VPS for performance.
  • Admin and user features are activated via special access links.

Setup Instructions

1. Clone the Repository to your VPS

git clone https://gitea.centx.de/lelo/bethaus-app
cd your-app

2. Configure Your Environment

Copy example config files and customize them for your setup:

cd your-app
cd example_config_files
cp * ../

3. Change Configurations

  • .env
    Used by Docker Compose to manage environment variables.

  • app_config.json
    General settings including search, link expiration, and admin key.
    Important: Replace default keys with strong random strings and keep them secret.

  • folder_mount_config.json
    Used if you set up cron to auto-mount folders.

  • folder_secret_config.json
    Contains paths and secrets to the shared folders.
    Add your first entry manually, then use the admin UI for further setup.

  • transcription_config.yml
    Required for local transcription. Adjust based on your tools and resources.

4. Launch the App

docker compose up -d

5. Admin Access

To unlock administrative controls on your device, use the dedicated admin access link.

Contribution

This app is under active development and contributions are welcome. If you'd like to adapt it for your own community or project, feel free to fork the repo and reach out for setup help.

Description
No description provided
Readme 30 MiB
Languages
Python 50.9%
HTML 23.9%
JavaScript 18.8%
CSS 4.3%
Shell 2.1%