citadel-apps/apps/agora/app.yml

76 lines
2.4 KiB
YAML
Raw Normal View History

2022-06-07 05:58:43 +00:00
# SPDX-FileCopyrightText: 2022 Jonathan Zernik
# SPDX-FileCopyrightText: 2022 Citadel and contributors
#
# SPDX-License-Identifier: AGPL-3.0-only
# yaml-language-server: $schema=../../app-standard-v4.yml
citadel_version: 4
metadata:
category: Files
name: Agora
version: v0.1.2
tagline: Sell your files for Bitcoin
description: >-
Agora is a project that allows anyone to sell files on the web for bitcoin using the Lightning Network.\n\nAgora serves the contents of a local directory, providing file listings and downloads over HTTP.
For example, you can point it at a directory full of PDFs, allowing users to browse and view the PDFs in their web browser.
If Agora is connected to an LND node, it can be configured to require Lightning Network payments for downloads.
developers:
Casey Rodarmor & Sönke Hahn: https://agora-org.github.io/agora/
2022-06-08 07:16:41 +00:00
permissions:
2022-06-07 05:58:43 +00:00
- lnd
repo:
Public: https://github.com/agora-org/agora
2022-06-08 07:16:41 +00:00
support: https://t.me/agoradiscussion
2022-06-07 05:58:43 +00:00
gallery: ["1.jpg", "2.jpg", "3.jpg"]
path: /admin/
defaultPassword: $APP_SEED
services:
filebrowser:
2022-06-10 13:07:42 +00:00
image: filebrowser/filebrowser:v2.21.1@sha256:e1f43b1b8a1acb1d7cd5f934454e7a2ef571ea3bab48b0e1ed0fa97ef9df8d69
2022-06-07 05:58:43 +00:00
user: 1000:1000
restart: on-failure
stop_grace_period: 1m
mounts:
data:
data/files: /srv
database/filebrowser.db: /database.db
data/entrypoint.sh: /citadel-entrypoint.sh
environment:
APP_PASSWORD: "$APP_SEED"
2022-06-10 13:03:11 +00:00
entrypoint: sh /citadel-entrypoint.sh
2022-06-07 05:58:43 +00:00
agora:
image: ghcr.io/agora-org/agora:sha-bb037f2@sha256:ab5538638fa5c6c709c5dd295df1dd57e419abdbd2328075843ce6fbe0951820
restart: on-failure
stop_grace_period: 1m
mounts:
data:
files: /files
2022-06-10 13:03:11 +00:00
lnd: /lnd
2022-06-07 05:58:43 +00:00
user: "1000:1000"
environment:
# LND environment variables
LND_RPC_AUTHORITY: "$LND_IP:$LND_GRPC_PORT"
TLS_CERT_PATH: "/lnd/tls.cert"
INVOICES_MACAROON_PATH: "/lnd/data/chain/bitcoin/$BITCOIN_NETWORK/invoice.macaroon"
# App specific environment variables
FILES_DIR: "/files"
AGORA_PORT: "8080"
2022-06-08 08:12:10 +00:00
main:
2022-06-07 05:58:43 +00:00
image: nginx:1.21.6@sha256:2834dc507516af02784808c5f48b7cbe38b8ed5d0f4837f16e78d00deb7e7767
init: true
restart: on-failure
mounts:
data:
data/nginx.conf: /etc/nginx/nginx.conf
data/www: /usr/share/nginx/html
port: 80
depends_on:
- agora
- filebrowser