No description
  • Java 98.4%
  • Shell 1.5%
  • Dockerfile 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Klaus fb78ec3f6f
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
ci: fix container pipelines for restricted runner
- 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
2026-11-29 16:49:16 -08:00
.forgejo/workflows ci: fix container pipelines for restricted runner 2026-11-29 16:49:16 -08:00
docs feat(history): echo stored record in watch progress push ack 2026-11-29 18:27:45 +01:00
gradle fix(deps): update junit-framework monorepo 2026-11-28 06:19:02 +00:00
src feat(history): echo stored record in watch progress push ack 2026-11-29 18:27:45 +01:00
testing ci: run compose tests with podman and rebrand test image to tube-server 2026-11-29 12:37:24 -08:00
.dockerignore Add testing support for GraalVM's and OpenJ9 JVM. 2022-06-02 12:33:07 +01:00
.gitignore ci: migrate GitHub Actions to Forgejo Actions 2026-11-29 19:15:46 +01:00
build.gradle chore(deps): harden pipeline for dependency updates 2026-11-06 08:51:50 -08:00
config.properties feat(auth): private instances and signed proxy URLs 2026-11-26 02:30:41 -08:00
docker-compose.yml ci: run compose tests with podman and rebrand test image to tube-server 2026-11-29 12:37:24 -08:00
docker-healthcheck.sh Add healthcheck to Dockerfiles 2023-08-23 21:01:15 +01:00
Dockerfile fix(docker): use fully-qualified docker.io/library image refs for podman builds 2026-11-29 10:44:15 -08:00
Dockerfile.ci ci: run compose tests with podman and rebrand test image to tube-server 2026-11-29 12:37:24 -08:00
gradlew chore(deps): update dependency gradle to v8.14.2 2025-06-12 05:56:53 +05:30
gradlew.bat chore(deps): update dependency gradle to v8.14.2 2025-06-12 05:56:53 +05:30
hotspot-entrypoint.sh feat: rename project to SI-Tube, keep Piped upstream credits 2026-10-14 15:00:24 -07:00
LICENSE Change line encoding from CRLF to LF. 2023-04-28 00:18:45 +01:00
README.md feat(auth): private instances and signed proxy URLs 2026-11-26 02:30:41 -08:00
renovate.json chore(deps): harden pipeline for dependency updates 2026-11-06 08:51:50 -08:00
settings.gradle feat: rename project to SI-Tube, keep Piped upstream credits 2026-10-14 15:00:24 -07:00
Taskfile.dist.yaml chore: split container push into its own task with quay login precondition 2026-11-06 13:52:28 -08:00
TODO.md feat(auth): private instances and signed proxy URLs 2026-11-26 02:30:41 -08:00

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).

  1. Create a config.properties (copy and adjust the sample in this repository). At a minimum you need a working PROXY_PART, API_URL, FRONTEND_URL and 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
    
  2. Start the stack (builds the image from the included Dockerfile):

    docker compose up -d --build
    

    The database schema is created and migrated automatically on first start.

  3. 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:

Community Projects