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

App/sharry #4936

Open
wants to merge 13 commits into
base: master
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
33 changes: 33 additions & 0 deletions apps/sharry/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "../schema.json",
"name": "sharry",
"port": 8681,
"available": true,
"exposable": true,
"dynamic_config": true,
"id": "sharry",
"tipi_version": 1,
"version": "v1.14.0",
"categories": [
"data"
],
"description": "Sharry allows to share files with others in a simple way. It is a self-hosted web application. The basic concept is: upload files and get a url back that can then be shared.",
"short_desc": "Sharry is a self-hosted file sharing web application.",
"author": "eikek",
"source": "https://github.com/eikek/sharry",
"website": "https://eikek.github.io/sharry/",
"form_fields": [
{
"type": "random",
"label": "DB Password",
"min": 32,
"env_variable": "DB_PASS"
}
],
falkheiland marked this conversation as resolved.
Show resolved Hide resolved
"supported_architectures": [
"arm64",
"amd64"
],
"created_at": 1727099286000,
"updated_at": 1727099286000
}
28 changes: 28 additions & 0 deletions apps/sharry/data/sharry.conf.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
sharry.restserver {

base-url = "https://{{APP_DOMAIN}}"

bind {
address = "0.0.0.0"
port = 9090
}

backend {
auth {
fixed.enabled = true ## enabled admin:admin access
}
falkheiland marked this conversation as resolved.
Show resolved Hide resolved

jdbc {
url = "jdbc:postgresql://sharry-db:5432/sharry-db"
user = "sharry"
password = "{{DB_PASS}}"

signup {
mode = "open"
invite-time = "14 days"
invite-password = "generate-invite"
}
}

}
}
38 changes: 38 additions & 0 deletions apps/sharry/docker-compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"services": [
{
"name": "sharry",
"image": "eikek0/sharry:v1.14.0",
"internalPort": 9090,
"isMain": true,
"volumes": [
{
"hostPath": "${APP_DATA_DIR}/data/sharry.conf",
"containerPath": "/opt/sharry.conf"
}
],
"command": "/opt/sharry.conf",
"dependsOn": {
"db": {
"condition": "service_started"
}
}
},
{
"name": "db",
"image": "postgres:16.4-alpine",
"isMain": false,
"volumes": [
{
"hostPath": "${APP_DATA_DIR}/data/postgres/",
"containerPath": "/var/lib/postgresql/data"
}
],
"environment": {
"POSTGRES_USER": "sharry",
"POSTGRES_PASSWORD": "${DB_PASS}",
"POSTGRES_DB": "sharrydb"
}
}
falkheiland marked this conversation as resolved.
Show resolved Hide resolved
]
}
55 changes: 55 additions & 0 deletions apps/sharry/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
services:
sharry:
depends_on:
- sharry-db
container_name: sharry
image: eikek0/sharry:v1.14.0
restart: unless-stopped
command: /opt/sharry.conf
falkheiland marked this conversation as resolved.
Show resolved Hide resolved
volumes:
- ${APP_DATA_DIR}/data/sharry.conf:/opt/sharry.conf
ports:
- ${APP_PORT}:9090
falkheiland marked this conversation as resolved.
Show resolved Hide resolved
networks:
- tipi_main_network
labels:
# Main
traefik.enable: true
traefik.http.middlewares.sharry-web-redirect.redirectscheme.scheme: https
traefik.http.services.sharry.loadbalancer.server.port: 9090
# Web
traefik.http.routers.sharry-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.sharry-insecure.entrypoints: web
traefik.http.routers.sharry-insecure.service: sharry
traefik.http.routers.sharry-insecure.middlewares: sharry-web-redirect
# Websecure
traefik.http.routers.sharry.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.sharry.entrypoints: websecure
traefik.http.routers.sharry.service: sharry
traefik.http.routers.sharry.tls.certresolver: myresolver
# Local domain
traefik.http.routers.sharry-local-insecure.rule: Host(`sharry.${LOCAL_DOMAIN}`)
traefik.http.routers.sharry-local-insecure.entrypoints: web
traefik.http.routers.sharry-local-insecure.service: sharry
traefik.http.routers.sharry-local-insecure.middlewares: sharry-web-redirect
# Local domain secure
traefik.http.routers.sharry-local.rule: Host(`sharry.${LOCAL_DOMAIN}`)
traefik.http.routers.sharry-local.entrypoints: websecure
traefik.http.routers.sharry-local.service: sharry
traefik.http.routers.sharry-local.tls: true
runtipi.managed: true

sharry-db:
container_name: sharry-db
image: postgres:16.4-alpine
restart: unless-stopped
volumes:
- ${APP_DATA_DIR}/data/postgres/:/var/lib/postgresql/data
falkheiland marked this conversation as resolved.
Show resolved Hide resolved
environment:
- POSTGRES_USER=sharry
- POSTGRES_PASSWORD=${DB_PASS}
- POSTGRES_DB=sharry-db
falkheiland marked this conversation as resolved.
Show resolved Hide resolved
networks:
- tipi_main_network
labels:
runtipi.managed: true
13 changes: 13 additions & 0 deletions apps/sharry/metadata/description.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Sharry

Sharry is a self-hosted file sharing web application.

Sharry allows to share files with others in a simple way. It is a self-hosted web application. The basic concept is: upload files and get a url back that can then be shared.

Standard Admin Account is `admin`:`admin`. Go to `Settings (3 lines) -> Accounts` and create a new admin user account. Login with the new account and disable / remove the standard admin account.

## Links

https://github.com/eikek/sharry

https://hub.docker.com/r/eikek0/sharry
Binary file added apps/sharry/metadata/logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.