Compare commits

...
10 Commits
4 changed files with 122 additions and 72 deletions
+29 -4
View File
@@ -1,16 +1,42 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# how to include another gitignore?
# https://stackoverflow.com/questions/7005142/can-i-include-other-gitignore-file-in-a-gitignore-file-like-include-in-c-li
# https://github.com/github/gitignore
# https://github.com/SlideWave/gitignore-include?tab=readme-ov-file#examples
# https://gitignore.io
### 目录 #################################################################
### .gitignore.global.txt ###
# Self defined pattern to ignore
?*.gitignore
?*.gitignore/
?*.gitignore.*
?*.gitignore.*/
*.gitomit
*.gitomit.*
*.gitomit/
*.gitomit.*/
*.nogit
*.nogit.*
*.nogit/
*.nogit.*/
# 保留
!.gitignore
!.gitignore.*
!.gitkeep
# 通用
.svn/
.deploy_git/
.idea/
.sass-cache/
.wrangler
/test/unit/coverage/
/test/e2e/reports/
node_modules/
*.aab
*.apk
*.ipa
*.min.js
*.min.css
*.min.html
@@ -70,7 +96,6 @@ _desktop.ini
/db.json
# wo
envar-*.gitignore.js
# 服务端
/_archive/*
/_datastore/*
@@ -84,5 +109,5 @@ envar-*.gitignore.js
package-lock.json
pages4loader.json5
# 保留
!.gitkeep
### .gitignore.local.txt ###
+7 -7
View File
@@ -2,13 +2,13 @@
导航路径 [Organizations](https://git.faronear.org/explore/organizations)
- 应用链 [tuc/_tuc](https://git.faronear.org/tuc/_tuc)
- 个性价值 [tuc-vic/vic](https://git.faronear.org/tuc-vic/vic)
- **<font size=5>服务端.mongo [tuc-vic/vic.server.mongo](https://git.faronear.org/tuc-vic/vic.server.mongo)</font>**
- 应用链 [tuc/\_tuc](https://git.faronear.org/tuc/_tuc)
- 个性价值 [vic/vic](https://git.faronear.org/vic/vic)
- **<font size=5>服务端.mongo [vic/vic.server.mongo](https://git.faronear.org/vic/vic.server.mongo)</font>**
## 安装
参见 <https://www.mongodb.com/>,分别把 mongodb 和 vic.server.mongo 安装到 /mongodb 和 /tuc-vic/vic.server.mongo
参见 <https://www.mongodb.com/>,分别把 mongodb 和 vic.server.mongo 安装到 /mongodb 和 /vic/vic.server.mongo
## 配置
@@ -20,7 +20,7 @@
- mongodb 配置文件已集成到 `vic.server.mongo/mongod.conf` 中
- bindIp: 127.0.0.1 (生产环境)
- bindIpAll: true (开发环境)
- 编写 `/tuc-vic/vic.server.mongo/configSec.js`,设置 HD 钱包的根密钥等等
- 编写 `/vic/vic.server.mongo/configSec.js`,设置 HD 钱包的根密钥等等
- protocol: https (生产环境)
- protocol: http (开发环境)
- port: 6842 (不要用 80/443,因为这要留给 certbot)
@@ -30,7 +30,7 @@
1. 启动 mongodb
```
sudo /mongodb/bin/mongod -f /tuc-vic/vic.server.mongo/mongod.conf --logpath /data/log/mongo.log
sudo /mongodb/bin/mongod -f /vic/vic.server.mongo/mongod.conf --logpath /data/log/mongo.log
```
以上命令已经被集成到 package.json 中,也可通过 npm 调用:
@@ -41,7 +41,7 @@
2. 启动 vic.server.mongo
```
cd /tuc-vic/vic.server.mongo
cd /vic/vic.server.mongo
node index.js
```
或者
+3 -3
View File
@@ -4,9 +4,9 @@
"description": "",
"main": "index.js",
"scripts": {
"check": "node --inspect-brk index.js",
"serve-prod-pm2": "cross-env NODE_ENV=production pm2 start index.js --name vic.server.mongo",
"serve-prod-pm2cluster": "cross-env NODE_ENV=production pm2 start index.js --name vic.server.mongo -i max",
"serving-dev": "node --inspect-brk index.js",
"serving-prod-pm2": "cross-env NODE_ENV=production pm2 start index.js --name=vic.server.mongo",
"serving-prod-pm2cluster": "cross-env NODE_ENV=production pm2 start index.js --name=vic.server.mongo -i max",
"mongodb-install": "cd /root && wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian92-4.2.0.tgz && tar xzf mongodb-linux-x86_64-debian92-4.2.0.tgz && mv mongodb-linux-x86_64-debian92-4.2.0 mongodb && mkdir mongodb/backup && mkdir mongodb/log && mkdir /data && mkdir /data/db",
"mongod": "/root/mongodb/bin/mongod -f /root/vic.server.mongo/mongod.conf --fork --dbpath /data/db",
"mongod-pm2": "pm2 start -x /root/mongodb/bin/mongod -n mongod -- --port 6842 --auth --dbpath /data/db --logpath /root/mongodb/log/mongod.log",
+35 -10
View File
@@ -6,9 +6,26 @@
# 文件在服务器端的后续更改会被同步到客户端,如果客户端也同时修改了这些文件,系统会生成冲突文件。
# seafile-ignore.txt 只能忽略还没有被同步的文件。对于已经被同步的文件,如果后来把它添加到 seafile-ignore.txt 中,系统只会忽略后续更改,已经上传的版本不会受影响。
### seafile-ignore.global.txt ###
# 自定义的后缀名,凡有 sfignore 后缀的都不进行同步
*.sfignore
*.sfignore/
*.sfignore.*
*.sfignore.*/
*.sfomit
*.sfomit.*
*.sfomit/
*.sfomit.*/
*.nosf
*.nosf.*
*.nosf/
*.nosf.*/
FETCH_HEAD
*/FETCH_HEAD
.Trash/
.DS_Store
*/.DS_Store
@@ -36,23 +53,31 @@ _desktop.ini
node_modules/
*/node_modules/
package-lock.json
*/package-lock.json
pages4loader.json5
.svn/
*/.svn/
*/pages4loader.json5
.deploy_git/
*/.deploy_git/
unpackage/dist/
*/unpackage/dist/
# next.js 项目
.next/
*/.next/
unpackage/release/
*/unpackage/release/
unpackage/cache/
*/unpackage/cache/
# HBuilder 目录
unpackage/
*/unpackage/
Icon
OneDrive/Icon
# wrangler project
.dev.vars*
*/.dev.vars*
.wrangler/
*/.wrangler/
### seafile-ignore.local.txt ###