Skip to content
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
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ RUN --mount=type=cache,target=/var/cache/apt/ \

WORKDIR /app/

# Create the VERSION file directly in the final stage
RUN echo "dockerfile-build-$(date +%Y%m%d)" > VERSION

COPY hotspot-entrypoint.sh docker-healthcheck.sh /

COPY --from=build /app/build/libs/piped-1.0-all.jar /app/piped.jar

COPY VERSION .
# COPY VERSION . # Remove or comment out this line

EXPOSE 8080

HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 CMD /docker-healthcheck.sh
ENTRYPOINT ["/hotspot-entrypoint.sh"]
ENTRYPOINT ["/hotspot-entrypoint.sh"]
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
# How to Use

This is a temporary hack to fix new videos not appearing on the feed.

1. Follow self-hosting instructions [here](https://docs.piped.video/docs/self-hosting/) up to `cd Piped-Docker`.
2. Inside `Piped-Docker/template`, modify the relevant template with the following:
```dockerfile
piped: # This is the backend service
# image: 1337kavin/piped:latest # Removed this line
build: # Build the image with the workaround
context: https://github.com/firejoust/Piped-Backend.git # Tells docker-compose where to get the source
dockerfile: Dockerfile # Specifies the Dockerfile within the context
```
3. Append the following to `Piped-Docker/config/config.properties`:
```sh
# Enable feed polling workaround
ENABLE_FEED_POLLING=true
POLLING_INTERVAL_MINUTES=15
POLLING_FETCH_LIMIT_PER_CHANNEL=10
FEED_RETENTION=30
```
4. After running `./configure-instance.sh` and selecting the relevant template, run the following to start the container:
```sh
sudo DOCKER_BUILDKIT=1 docker-compose up -d
```

### Workaround Configuration (`config.properties`)

* **`ENABLE_FEED_POLLING`**:
* Set to `true` to enable the backend to periodically check subscribed channels for new videos, bypassing PubSub. Set to `false` (default) to disable this polling.

* **`POLLING_INTERVAL_MINUTES`**:
* Specifies how often (in minutes) the backend should perform the polling cycle for all subscribed channels. Default: `15`.

* **`POLLING_FETCH_LIMIT_PER_CHANNEL`**:
* Limits how many of the *most recent* videos are checked for each channel during a polling cycle. Helps improve performance and reduce load. Default: `10`.

* **`FEED_RETENTION`**:
* Determines how many days old a video can be and still be added to the feed database (by polling or PubSub). Also affects how long videos are kept before cleanup. Default: `30`.

# README.md:

```markdown
# Piped-Backend

An advanced open-source privacy friendly alternative to YouTube, crafted with the help of [NewPipeExtractor](https://github.com/TeamNewPipe/NewPipeExtractor).
Expand All @@ -9,3 +52,4 @@ An advanced open-source privacy friendly alternative to YouTube, crafted with th
## Community Projects

- See https://github.com/TeamPiped/Piped#made-with-piped
```
Loading
Loading