Skip to content

Commit

Permalink
Combine media server into api server
Browse files Browse the repository at this point in the history
  • Loading branch information
soruly committed Mar 9, 2024
1 parent 8a70687 commit 044989f
Show file tree
Hide file tree
Showing 12 changed files with 1,265 additions and 1,270 deletions.
19 changes: 8 additions & 11 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# General
SERVER_PORT=3001
VIDEO_PATH=/mnt/data/anilist/
HASH_PATH=/mnt/data/anilist_hash/
TRACE_API_SALT=TRACE_API_SALT
TRACE_ACCURACY=0.02
TRACE_ALGO=cl
MAX_WORKER=1
MEDIA_QUEUE=8

# Database setting
SOLA_DB_HOST=127.0.0.1
Expand All @@ -16,17 +23,7 @@ REDIS_PORT=6379
SOLA_SOLR_LIST=http://127.0.0.1:8983/solr/
SOLA_SOLR_SIZE=1

# Media Server
TRACE_MEDIA_URL=http://127.0.0.1
TRACE_MEDIA_SALT=TRACE_MEDIA_SALT
VIDEO_PATH=/mnt/data/anilist/
HASH_PATH=/mnt/data/anilist_hash/

# (this) API Server
SERVER_PORT=3001
TRACE_ACCURACY=0.02
TRACE_API_SALT=TRACE_API_SALT
MAX_WORKER=1
# Membership setting
WEBHOOK_GITHUB_SECRET=
WEBHOOK_PATREON_SECRET=
EMAIL_SMTP=smtp.gmail.com
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,13 @@ jobs:
SOLA_DB_USER: root
SOLA_DB_PWD: sola
SOLA_DB_NAME: test
TRACE_ALGO: cl
SOLA_SOLR_LIST: http://127.0.0.1:8983/solr/
SOLA_SOLR_SIZE: 1
TRACE_MEDIA_URL: http://127.0.0.1
TRACE_MEDIA_SALT: TRACE_MEDIA_SALT
TRACE_ALGO: cl
TRACE_ACCURACY: 0.02
TRACE_API_SALT: YOUR_TRACE_API_SALT
MAX_WORKER: 1
MEDIA_QUEUE: 8
VIDEO_PATH: /home/runner/
HASH_PATH: /home/runner/
EMAIL_SMTP: smtp.ethereal.email
Expand Down
11 changes: 10 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,16 @@ export default {
coverageDirectory: "coverage",

// An array of regexp pattern strings used to skip coverage collection
coveragePathIgnorePatterns: ["/node_modules/", "/script/", "/src/webhook/", "/src/worker/"],
coveragePathIgnorePatterns: [
"/node_modules/",
"/script/",
"/src/webhook/",
"/src/worker/",
"/src/video.js",
"/src/image.js",
"/src/lib/detect-scene.js",
"/src/lib/get-video-duration.js",
],

// Indicates which provider should be used to instrument code for coverage
coverageProvider: "v8",
Expand Down
Loading

0 comments on commit 044989f

Please # to comment.