-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# app | ||
APP_NAME = Web-Spider | ||
APP_PORT = 7001 | ||
APP_BASE_URL = http://localhost:${APP_PORT} | ||
APP_LOCALE = en-EN | ||
PROJECT_DIR = /web Spider | ||
|
||
# allow multiple logins | ||
MULTI_DEVICE_LOGIN = true | ||
|
||
# logger | ||
LOGGER_LEVEL = verbose | ||
LOGGER_MAX_FILES = 31 | ||
|
||
TZ = Europe/Zurich | ||
|
||
API_KEY = "bali" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# logger | ||
LOGGER_LEVEL = debug | ||
|
||
# security | ||
JWT_SECRET = admin!@#123 | ||
JWT_EXPIRE = 86400 | ||
REFRESH_TOKEN_SECRET = admin!@#123 | ||
REFRESH_TOKEN_EXPIRE = 2592000 | ||
|
||
# swagger | ||
SWAGGER_ENABLE = true | ||
SWAGGER_PATH = api-docs | ||
SWAGGER_VERSION = 1.0 | ||
|
||
# redis | ||
REDIS_PORT = 18661 | ||
REDIS_HOST ="redis-18661.c1.us-central1-2.gce.redns.redis-cloud.com" | ||
REDIS_PASSWORD ="u1pGeAzgbPzIHvUsJj97GaAtXeY0WTUe" | ||
REDIS_DB = 0 | ||
# 1 week | ||
REDIS_TTL = 604800 | ||
|
||
IS_DEMO = true | ||
|
||
API_KEY = "bali" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# logger | ||
LOGGER_LEVEL = debug | ||
|
||
# security | ||
JWT_SECRET = admin!@#123 | ||
JWT_EXPIRE = 86400 | ||
REFRESH_TOKEN_SECRET = admin!@#123 | ||
REFRESH_TOKEN_EXPIRE = 2592000 | ||
|
||
# swagger | ||
SWAGGER_ENABLE = true | ||
SWAGGER_PATH = api-docs | ||
SWAGGER_VERSION = 1.0 | ||
|
||
|
||
# redis | ||
REDIS_PORT = 18661 | ||
REDIS_HOST ="redis-18661.c1.us-central1-2.gce.redns.redis-cloud.com" | ||
REDIS_PASSWORD ="u1pGeAzgbPzIHvUsJj97GaAtXeY0WTUe" | ||
REDIS_DB = 0 | ||
# 1 week | ||
REDIS_TTL = 604800 | ||
|
||
#Whether it is demo mode (in demo mode, all requests except the GET method will be intercepted) | ||
IS_DEMO = true | ||
|
||
API_KEY = "KL2Gg9oJ0vmdhD54!$" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# https://docs.github.com/cn/get-started/getting-started-with-git/configuring-git-to-handle-line-endings | ||
|
||
# Automatically normalize line endings (to LF) for all text-based files. | ||
* text=auto eol=lf | ||
|
||
# Declare files that will always have CRLF line endings on checkout. | ||
*.{cmd,[cC][mM][dD]} text eol=crlf | ||
*.{bat,[bB][aA][tT]} text eol=crlf | ||
|
||
# Denote all files that are truly binary and should not be modified. | ||
*.{ico,png,jpg,jpeg,gif,webp,svg,woff,woff2} binary |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
node_modules | ||
.DS_Store | ||
dist | ||
*-dist | ||
.cache | ||
.history | ||
.vercel/ | ||
|
||
.turbo | ||
.local | ||
|
||
# local env files | ||
#.env.development | ||
#.env.production | ||
.env.local | ||
|
||
.eslintcache | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
.pnpm-debug.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
# .vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
# compiled output | ||
/dist | ||
/node_modules | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
pnpm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# OS | ||
.DS_Store | ||
|
||
# Tests | ||
/coverage | ||
/.nyc_output | ||
|
||
# IDEs and editors | ||
/.idea | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
.nestjs_repl_history | ||
out | ||
|
||
# temp data | ||
__data | ||
|
||
public/upload | ||
types/env.d.ts |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
shamefully-hoist=true | ||
strict-peer-dependencies=false | ||
registry = https://registry.npmmirror.com | ||
# registry = https://registry.npmjs.org |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Debug Nest Framework", | ||
"runtimeExecutable": "npm", | ||
"runtimeArgs": ["run", "start:debug", "--", "--inspect-brk"], | ||
"autoAttachChildProcesses": true, | ||
"restart": true, | ||
"sourceMaps": true, | ||
"stopOnEntry": false, | ||
"console": "integratedTerminal" | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
// Enable the ESlint flat config support | ||
"eslint.experimental.useFlatConfig": true, | ||
|
||
// Disable the default formatter, use eslint instead | ||
"prettier.enable": false, | ||
"editor.formatOnSave": false, | ||
|
||
// Auto fix | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit", | ||
"source.organizeImports": "never" | ||
}, | ||
|
||
// Silent the stylistic rules in you IDE, but still auto fix them | ||
"eslint.rules.customizations": [ | ||
{ "rule": "style/*", "severity": "off" }, | ||
{ "rule": "*-indent", "severity": "off" }, | ||
{ "rule": "*-spacing", "severity": "off" }, | ||
{ "rule": "*-spaces", "severity": "off" }, | ||
{ "rule": "*-order", "severity": "off" }, | ||
{ "rule": "*-dangle", "severity": "off" }, | ||
{ "rule": "*-newline", "severity": "off" }, | ||
{ "rule": "*quotes", "severity": "off" }, | ||
{ "rule": "*semi", "severity": "off" } | ||
], | ||
|
||
// Enable eslint for all supported languages | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact", | ||
"vue", | ||
"html", | ||
"markdown", | ||
"json", | ||
"jsonc", | ||
"yaml", | ||
"toml" | ||
] | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021-present buqiyuan | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Web-Spider |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export declare class AppModule { | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { CanActivate, ExecutionContext } from '@nestjs/common'; | ||
export declare class ApiKeyGuard implements CanActivate { | ||
canActivate(context: ExecutionContext): Promise<boolean>; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { HttpHealthIndicator } from '@nestjs/terminus'; | ||
export declare class HealthController { | ||
private http; | ||
constructor(http: HttpHealthIndicator); | ||
checkNetwork(): Promise<import("@nestjs/terminus").HealthIndicatorResult>; | ||
} |