- Java 98.4%
- Shell 1.5%
- Dockerfile 0.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
Some checks failed
Podman Build and Test / build-and-test (push) Successful in 1m52s
Podman Build and Test / build-jdk (push) Successful in 0s
Build and publish container / check (push) Successful in 3s
CI / build-and-test (21) (push) Successful in 2m18s
Podman Build and Test / build-test (hsqldb) (push) Failing after 5m21s
Podman Build and Test / build-test (postgres) (push) Failing after 6m41s
Build and publish container / build-and-test (push) Successful in 2m3s
Build and publish container / build-jdk (push) Successful in 0s
Build and publish container / build (push) Failing after 4m19s
- publish: build/download si-tube.jar before podman build (fixes missing COPY source) - tests: replace podman-compose with explicit podman run (runner has read-only cgroups); use --network=host --cgroups=disabled and --add-host for postgres |
||
| .forgejo/workflows | ||
| docs | ||
| gradle | ||
| src | ||
| testing | ||
| .dockerignore | ||
| .gitignore | ||
| build.gradle | ||
| config.properties | ||
| docker-compose.yml | ||
| docker-healthcheck.sh | ||
| Dockerfile | ||
| Dockerfile.ci | ||
| gradlew | ||
| gradlew.bat | ||
| hotspot-entrypoint.sh | ||
| LICENSE | ||
| README.md | ||
| renovate.json | ||
| settings.gradle | ||
| Taskfile.dist.yaml | ||
| TODO.md | ||
SI-Tube
An advanced open-source privacy friendly alternative to YouTube, crafted with the help of NewPipeExtractor.
SI-Tube (Shivering-Isles Tube) is a fork of Piped-Backend — many thanks to the upstream project and its community.
Getting Started
The backend is a REST API that serves its associated frontend or any other Piped-compatible frontend, and ships with everything you need for a single-node setup in this repository: a docker-compose.yml, a sample config.properties, and automatic database migrations (Liquibase).
With Docker (recommended)
-
Create a
config.properties(copy and adjust the sample in this repository). At a minimum you need a workingPROXY_PART,API_URL,FRONTEND_URLand database connection, for example:PORT=8080 PROXY_PART=https://proxy.watch.example.com API_URL=https://api.watch.example.com FRONTEND_URL=https://watch.example.com hibernate.connection.url=jdbc:postgresql://postgres:5432/sitube hibernate.connection.driver_class=org.postgresql.Driver hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect hibernate.connection.username=sitube hibernate.connection.password=changeme -
Start the stack (builds the image from the included
Dockerfile):docker compose up -d --buildThe database schema is created and migrated automatically on first start.
-
Verify it is up:
curl http://localhost:8080/healthcheck
From source
Requirements: Java 21+ (Gradle is bundled via the wrapper).
./gradlew build
java -jar build/libs/si-tube-*.jar
The binary reads config.properties from the working directory (as above). Every setting can also be provided via environment variables with the same name. HSQLDB can be used for lightweight/development setups (see testing/config.hsqldb.properties); PostgreSQL, CockroachDB and YugabyteDB are supported in production.
Authentication
By default, users register with username and password through POST /register. To use OpenID Connect instead, configure OIDC_ISSUER (and OIDC_CLIENT_ID) in config.properties; the backend then becomes a pure resource server, clients obtain tokens directly from your identity provider and send them as Authorization: Bearer <token> — the password endpoints are disabled in that mode. See docs/OIDC.md for a full setup guide, config.properties for all OIDC options and the API documentation in docs/API.md.
Private instances
Set DISABLE_UNAUTHENTICATED:true in config.properties to disable all unauthenticated endpoints: content endpoints (streams, search, trending, channels, playlists, comments, ...) then require a session token, and the unauthenticated-only endpoints are removed entirely. Frontends are expected to show a login screen instead of rendering any videos or other content in that mode — see docs/API.md, section Disabling unauthenticated access.
API Documentation
The full API reference lives in docs/API.md.
Frontends and Ecosystem (upstream)
SI-Tube is compatible with the Piped ecosystem; upstream projects are maintained by TeamPiped:
- VueJS frontend - Piped