-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
76 changed files
with
2,682 additions
and
925 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,48 @@ | ||
# What port to listen to. Recommended but not required. | ||
PORT=3060 | ||
# Database URL for PostgreSQL. If not given, will default to SQLite. | ||
|
||
# Database URL for PostgreSQL. If not given, will default to using SQLite. | ||
DATABASE_URL="postgresql://postgres:password@localhost:5432/?connection_limit=100" | ||
|
||
# Censys credentials used for proxy fetching. You can visit https://search.censys.io/account/api, | ||
# create an account, and get the ID and secret. Highly recommended if not required as some providers | ||
# will not work without proxies. | ||
# | ||
# Censys ID used for finding CORS proxies https://search.censys.io/account/api. Required for proxies to work properly. | ||
CENSYS_ID="" | ||
# Censys secret used for finding CORS proxies https://search.censys.io/account/api. Requirded for proxies to work properly. | ||
CENSYS_SECRET="" | ||
|
||
# 9anime resolver URL. Private server that can be obtained via the Consumet Discord if necessary. Required for 9anime to work properly. | ||
# https://discord.gg/yMZTcVstD3 | ||
# | ||
NINEANIME_RESOLVER="https://9anime.myresolver.com" | ||
# 9anime resolver API key. Required for 9anime to work properly. | ||
NINEANIME_KEY="9anime" | ||
# NovelUpdates cookies for login purposes. If you have questions join the Anify Discord (https://anify.tv/discord) | ||
|
||
# NovelUpdates cookies for login purposes. Visit the NovelUpdates website, create an account, and login. | ||
# Then, visit a novel info page (eg. https://novelupdates.com/novel/overgeared/), inspect element, | ||
# go to the network tab, click on the HTML request, and find the cookie that says | ||
# "wordpress_logged_in_..." and copy the value. If not given, the backend should work fine, but | ||
# the NovelUpdates provider will not work. | ||
# | ||
# Required for NovelUpdates to work properly for chapter fetching. | ||
NOVELUPDATES_LOGIN="" | ||
|
||
# Redis caching. Recommended for optimized performance. The backend will still work | ||
# without Redis, but may face performance issues. | ||
# | ||
# Redis URL. Recommended but not required. | ||
REDIS_URL="redis://localhost:6379" | ||
# Redis cache time in seconds. 18000 = 5 hours. Required for Redis to work properly. | ||
REDIS_CACHE_TIME="18000" | ||
|
||
# Mixdrop related for uploads. Not required. | ||
# Mixdrop related for uploads. Not required as this is mainly used for manga and novel uploading. | ||
# Signup via https://mixdrop.ag, then view the developer page to get an API key. | ||
# | ||
# Whether to use Mixdrop | ||
USE_MIXDROP="true" | ||
# Mixdrop Email | ||
MIXDROP_EMAIL="myemail@outlook.com" | ||
# Mixdrop API key | ||
MIXDROP_KEY="mixdrop_key" | ||
|
||
# Related to subtitles and injecting custom text to all subtitles. Not required. | ||
# Secret key for URL encryption. Allows for encrypted subtitle URLs. | ||
SECRET_KEY="anify" | ||
# The text to inject into all subtitles. Can be left blank. | ||
TEXT_TO_INJECT="Provided by anify.tv" | ||
# The distance from the injected text in seconds. 300 = 5 minutes. | ||
DISTANCE_FROM_INJECTED_TEXT_SECONDS=300 | ||
# The cache time for subtitle URLs in seconds. 60 * 60 * 12 = 12 hours. | ||
SUBTITLES_CACHE_TIME="60 * 60 * 12" | ||
# Public URL for the API. Required for subtitle spoofing to work properly. | ||
API_URL="https://api.anify.tv" | ||
# Whether to use subtitle spoofing. Required for subtitle spoofing to work properly. | ||
USE_SUBTITLE_SPOOFING="true" | ||
MIXDROP_KEY="mixdrop_key" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -171,4 +171,5 @@ dist | |
/manga | ||
db.sqlite | ||
keys.json | ||
bannedIds.json | ||
bannedIds.json | ||
test.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import typescriptEslint from "@typescript-eslint/eslint-plugin"; | ||
import tsParser from "@typescript-eslint/parser"; | ||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
import js from "@eslint/js"; | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all, | ||
}); | ||
|
||
export default [ | ||
{ | ||
ignores: ["dist/*", "node_modules/*", "**/.DS_Store"], | ||
}, | ||
...compat.extends("plugin:@typescript-eslint/recommended"), | ||
{ | ||
plugins: { | ||
"@typescript-eslint": typescriptEslint, | ||
}, | ||
|
||
languageOptions: { | ||
parser: tsParser, | ||
ecmaVersion: 5, | ||
sourceType: "script", | ||
|
||
parserOptions: { | ||
project: "tsconfig.json", | ||
}, | ||
}, | ||
|
||
rules: { | ||
"@typescript-eslint/no-explicit-any": "off", | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.