Skip to content

Commit

Permalink
Merge pull request #117 from creekorful/develop
Browse files Browse the repository at this point in the history
Release 0.9.0
  • Loading branch information
creekorful committed Jan 3, 2021
2 parents 79939ff + 2133a1a commit 6c4ecc1
Show file tree
Hide file tree
Showing 41 changed files with 1,310 additions and 1,458 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/cd.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .goreleaser.yml

This file was deleted.

24 changes: 0 additions & 24 deletions build/docker/Dockerfile.tdsh-extractor

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ RUN go mod download
COPY . .

# Test then build app
RUN go build -v github.com/creekorful/trandoshan/cmd/tdsh-api
RUN go build -v github.com/creekorful/trandoshan/cmd/tdsh-indexer

# runtime image
FROM alpine:latest
COPY --from=builder /app/tdsh-api /app/
COPY --from=builder /app/tdsh-indexer /app/

WORKDIR /app/

ENTRYPOINT ["./tdsh-api"]
ENTRYPOINT ["./tdsh-indexer"]
14 changes: 0 additions & 14 deletions cmd/tdsh-extractor/tdsh-extractor.go

This file was deleted.

4 changes: 2 additions & 2 deletions cmd/tdsh-api/tdsh-api.go → cmd/tdsh-indexer/tdsh-indexer.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package main

import (
"github.com/creekorful/trandoshan/internal/api"
"github.com/creekorful/trandoshan/internal/indexer"
"github.com/creekorful/trandoshan/internal/process"
"os"
)

func main() {
app := process.MakeApp(&api.State{})
app := process.MakeApp(&indexer.State{})
if err := app.Run(os.Args); err != nil {
os.Exit(1)
}
Expand Down
28 changes: 8 additions & 20 deletions deployments/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,10 @@ services:
command: >
--log-level debug
--hub-uri amqp://guest:guest@rabbitmq:5672
--api-uri http://api:8080
--api-token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InNjaGVkdWxlciIsInJpZ2h0cyI6eyJHRVQiOlsiL3YxL3Jlc291cmNlcyJdfX0.dBR6KLQp2h2srY-By3zikEznhQplLCtDrvOkcXP6USY
--config-api-uri http://configapi:8080
restart: always
depends_on:
- rabbitmq
- api
extractor:
image: creekorful/tdsh-extractor:latest
command: >
--log-level debug
--hub-uri amqp://guest:guest@rabbitmq:5672
--api-uri http://api:8080
--api-token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImV4dHJhY3RvciIsInJpZ2h0cyI6eyJQT1NUIjpbIi92MS9yZXNvdXJjZXMiXX19.mytGd_9zyK8y_T3fsWAmH8FnaBNr6qWefwCPDOx4in0
restart: always
depends_on:
- rabbitmq
- api
archiver:
image: creekorful/tdsh-archiver:latest
command: >
Expand All @@ -73,34 +59,36 @@ services:
- archiverdata:/archive
depends_on:
- rabbitmq
api:
image: creekorful/tdsh-api:latest
indexer:
image: creekorful/tdsh-indexer:latest
command: >
--log-level debug
--hub-uri amqp://guest:guest@rabbitmq:5672
--elasticsearch-uri http://elasticsearch:9200
--signing-key K==M5RsU_DQa4_XSbkX?L27s^xWmde25
--config-api-uri http://configapi:8080
--redis-uri redis:6379
restart: always
depends_on:
- rabbitmq
- elasticsearch
- configapi
- redis
ports:
- 15005:8080
configapi:
image: creekorful/tdsh-configapi:latest
command: >
--log-level debug
--hub-uri amqp://guest:guest@rabbitmq:5672
--db-uri redis:6379
--default-value forbidden-hostnames="[{\"hostname\": \"facebookcorewwwi.onion\"}]"
--default-value forbidden-mime-types="[{\"content-type\":\"image/png\",\"extensions\":[\"png\"]},{\"content-type\":\"image/gif\",\"extensions\":[\"gif\"]},{\"content-type\":\"image/jpeg\",\"extensions\":[\"jpg\",\"jpeg\"]},{\"content-type\":\"image/bmp\",\"extensions\":[\"bmp\"]},{\"content-type\":\"image/svg+xml\",\"extensions\":[\"svg\"]},{\"content-type\":\"text/css\",\"extensions\":[\"css\"]},{\"content-type\":\"application/javascript\",\"extensions\":[\"js\"]}]"
--default-value allowed-mime-types="[{\"content-type\":\"text/\",\"extensions\":[]}]"
--redis-uri redis:6379
--default-value forbidden-hostnames="[{\"hostname\": \"facebookcorewwwi.onion\"}, {\"hostname\": \"nytimes3xbfgragh.onion\"}]"
--default-value allowed-mime-types="[{\"content-type\":\"text/\",\"extensions\":[\"html\",\"php\",\"aspx\", \"htm\"]}]"
--default-value refresh-delay="{\"delay\": -1}"
restart: always
depends_on:
- rabbitmq
- redis
ports:
- 15006:8080
blacklister:
Expand Down
Binary file modified docs/architecture.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6c4ecc1

Please sign in to comment.