8000 Add extract service by angristan · Pull Request #7 · angristan/feedbin-docker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add extract service #7

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

Merged
merged 1 commit into from
Aug 23, 2020
Merged
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
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ AWS_S3_ENDPOINT=https://minio.feedbin.domain.tld
AWS_S3_PATH_STYLE="true"
ENTRY_IMAGE_HOST=minio.feedbin.domain.tld

# Extract service (needs to run behind HTTPS:443)
EXTRACT_HOST=extract.feedbin.domain.tld
EXTRACT_USER=username
EXTRACT_SECRET=secret
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Here is a breakdown of all the containers:
* `workers`: some of the sidekiq workers for background processing
* `refresher`: sidekiq worker for refreshing feeds
* `image`: sidekiq worker to find thumbnails
* `extract`: nodejs service to extract article content from full web pages
* `camo`: a node reverse proxy to prevent mixed content
* `minio`: object storage for images, favicons, imports
* `redis`: cache, store sidekiq queues and stats
Expand Down
7 changes: 7 additions & 0 deletions caddy/example.Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,10 @@ minio.feedbin.domain.tld {
transparent
}
}

extract.feedbin.domain.tld {
gzip
proxy / http://feedbin-extract:3000 {
transparent
}
}
6 changes: 6 additions & 0 deletions docker-compose-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,9 @@ services:
restart: always
mem_limit: 512m

feedbin-extract:
build: ./feedbin-extract
env_file:
- ./.env
restart: always
mem_limit: 512m
11 changes: 11 additions & 0 deletions feedbin-extract/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:12

WORKDIR /app

RUN git clone https://github.com/feedbin/extract.git /app \
&& cd /app \
&& npm install \
&& mkdir users \
&& echo "secret" > users/username

CMD ["node", "app/server.js"]
0