This commit is contained in:
dcr_xuxgc
2026-06-12 17:49:54 +08:00
commit d759a9e740
69 changed files with 14243 additions and 0 deletions

25
server/release/README.txt Normal file
View File

@@ -0,0 +1,25 @@
JNote 后端服务部署说明
=====================
目录结构:
├── linux/ # Linux 服务器部署包
│ ├── jnote-api # Linux 可执行二进制文件
│ ├── start.sh # Linux 原生启动脚本
│ └── .env # 环境配置
└── windows/ # Windows 服务器部署包
├── jnote-api.exe # Windows 可执行程序
├── start.bat # Windows 原生启动脚本
└── .env # 环境配置
部署步骤:
【Linux 服务器】
1. 上传 linux/ 目录到服务器
2. 修改 .env 中的数据库配置
3. 直接运行: ./start.sh
【Windows 服务器】
1. 上传 windows/ 目录到服务器
2. 修改 .env 中的数据库配置
3. 双击运行 start.bat 即可

17
server/release/linux/.env Normal file
View File

@@ -0,0 +1,17 @@
# 数据库配置
DB_HOST=43.156.91.115
DB_PORT=53306
DB_USER=root
# DB_PASSWORD=mysql_sX4mrh
DB_PASSWORD=mariadb_hJbME5
DB_NAME=jnote
# RUSTFS 对象存储配置
RUSTFS_ENDPOINT=http://43.156.91.115:9001
RUSTFS_REGION=us-east-1
RUSTFS_BUCKET=setting
RUSTFS_ACCESS_KEY=rustfsadmin
RUSTFS_SECRET_KEY=rustfsadmin
# 服务器配置
PORT=4501

View File

@@ -0,0 +1,17 @@
# 数据库配置
DB_HOST=43.156.91.115
DB_PORT=53306
DB_USER=root
# DB_PASSWORD=mysql_sX4mrh
DB_PASSWORD=mariadb_hJbME5
DB_NAME=jnote
# RUSTFS 对象存储配置
RUSTFS_ENDPOINT=http://43.156.91.115:9001
RUSTFS_REGION=us-east-1
RUSTFS_BUCKET=setting
RUSTFS_ACCESS_KEY=rustfsadmin
RUSTFS_SECRET_KEY=rustfsadmin
# 服务器配置
PORT=4501

Binary file not shown.

View File

@@ -0,0 +1,4 @@
#!/bin/bash
# JNote 后端服务启动脚本
cd "$(dirname "$0")"
./jnote-api

View File

@@ -0,0 +1,17 @@
# 数据库配置
DB_HOST=43.156.91.115
DB_PORT=53306
DB_USER=root
# DB_PASSWORD=mysql_sX4mrh
DB_PASSWORD=mariadb_hJbME5
DB_NAME=jnote
# RUSTFS 对象存储配置
RUSTFS_ENDPOINT=http://43.156.91.115:9001
RUSTFS_REGION=us-east-1
RUSTFS_BUCKET=setting
RUSTFS_ACCESS_KEY=rustfsadmin
RUSTFS_SECRET_KEY=rustfsadmin
# 服务器配置
PORT=4501

View File

@@ -0,0 +1,17 @@
# 数据库配置
DB_HOST=43.156.91.115
DB_PORT=53306
DB_USER=root
# DB_PASSWORD=mysql_sX4mrh
DB_PASSWORD=mariadb_hJbME5
DB_NAME=jnote
# RUSTFS 对象存储配置
RUSTFS_ENDPOINT=http://43.156.91.115:9001
RUSTFS_REGION=us-east-1
RUSTFS_BUCKET=setting
RUSTFS_ACCESS_KEY=rustfsadmin
RUSTFS_SECRET_KEY=rustfsadmin
# 服务器配置
PORT=4501

Binary file not shown.

View File

@@ -0,0 +1,5 @@
@echo off
:: JNote 后端服务启动脚本
cd /d "%~dp0"
jnote-api.exe
pause