Skip to content

Commit

Permalink
feat(modules): add netdisk module
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Feb 10, 2024
1 parent 9e67d6f commit 6aad8cd
Show file tree
Hide file tree
Showing 32 changed files with 2,189 additions and 107 deletions.
10 changes: 9 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,12 @@ APP_LOCALE = zh-CN
LOGGER_LEVEL = verbose
LOGGER_MAX_FILES = 31

TZ = Asia/Shanghai
TZ = Asia/Shanghai

# OSS(qiniu)
OSS_ACCESSKEY=xxx
OSS_SECRETKEY=xxx
OSS_DOMAIN=https://cdn.buqiyuan.site
OSS_BUCKET=nest-admin
OSS_ZONE=Zone_z2 # Zone_as0 | Zone_na0 | Zone_z0 | Zone_z1 | Zone_z2
OSS_ACCESS_TYPE=public # or private
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ out
# temp data
__data

public/upload
public/upload
types/env.d.ts
43 changes: 33 additions & 10 deletions deploy/sql/nest_admin.sql

Large diffs are not rendered by default.

14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"pnpm": ">=8.1.0"
},
"scripts": {
"postinstall": "npm run gen-env-types",
"prebuild": "rimraf dist",
"build": "nest build",
"dev": "npm run start",
Expand All @@ -26,6 +27,7 @@
"test": "jest",
"test:watch": "jest --watch",
"doc": "compodoc -p tsconfig.json -s",
"gen-env-types": "npx tsx scripts/genEnvTypes.ts",
"typeorm": "NODE_ENV=development typeorm -d ./dist/config/database.config.js",
"migration:create": "typeorm migration:create",
"migration:generate": "typeorm -- migration:generate",
Expand All @@ -42,7 +44,7 @@
"dependencies": {
"@fastify/cookie": "^9.3.1",
"@fastify/multipart": "^8.1.0",
"@fastify/static": "^7.0.0",
"@fastify/static": "^7.0.1",
"@liaoliaots/nestjs-redis": "^9.0.5",
"@nestjs-modules/mailer": "^1.10.3",
"@nestjs/axios": "^3.0.2",
Expand All @@ -58,8 +60,8 @@
"@nestjs/platform-socket.io": "^10.3.2",
"@nestjs/schedule": "^4.0.1",
"@nestjs/swagger": "^7.3.0",
"@nestjs/terminus": "^10.2.1",
"@nestjs/throttler": "^5.1.1",
"@nestjs/terminus": "^10.2.2",
"@nestjs/throttler": "^5.1.2",
"@nestjs/typeorm": "^10.0.2",
"@nestjs/websockets": "^10.3.2",
"@socket.io/redis-adapter": "^8.2.1",
Expand Down Expand Up @@ -88,6 +90,7 @@
"passport-google-oauth20": "^2.0.0",
"passport-jwt": "^4.0.1",
"passport-local": "^1.0.0",
"qiniu": "^7.11.0",
"reflect-metadata": "^0.2.1",
"rimraf": "^5.0.5",
"rxjs": "^7.8.1",
Expand Down Expand Up @@ -128,11 +131,6 @@
"pnpm": {
"overrides": {
"@liaoliaots/nestjs-redis": "npm:@songkeys/nestjs-redis"
},
"peerDependencyRules": {
"allowedVersions": {
"reflect-metadata": "^0.2.1"
}
}
},
"jest": {
Expand Down
Loading

0 comments on commit 6aad8cd

Please sign in to comment.