diff --git a/docs/codestyle/project/GoogleStyle.xml b/docs/codestyle/project/GoogleStyle.xml
new file mode 100644
index 00000000..23c032a5
--- /dev/null
+++ b/docs/codestyle/project/GoogleStyle.xml
@@ -0,0 +1,380 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/codestyle/project/P3C_CodeStyle.xml b/docs/codestyle/project/P3C_CodeStyle.xml
deleted file mode 100644
index 6604d452..00000000
--- a/docs/codestyle/project/P3C_CodeStyle.xml
+++ /dev/null
@@ -1,380 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/docker-env/minio/docker-compose-minio-online.yml b/docs/docker-env/minio/docker-compose-minio-online.yml
new file mode 100644
index 00000000..9cb97bea
--- /dev/null
+++ b/docs/docker-env/minio/docker-compose-minio-online.yml
@@ -0,0 +1,34 @@
+# 可参考 https://docs.min.io/docs/minio-docker-quickstart-guide.html
+# 预览地址参考 https://oss.odboy.cn/blog/files/test.jpeg
+version: '3'
+services:
+ minio:
+ image: registry.cn-shanghai.aliyuncs.com/odboy/ops:minio-2024.05.28
+ container_name: minio
+ restart: unless-stopped
+ volumes:
+ - "./minio/data:/data"
+ - "./minio/minio:/minio"
+ - "./minio/config:/root/.minio"
+ environment:
+ TZ: Asia/Shanghai
+ LANG: en_US.UTF-8
+ MINIO_PROMETHEUS_AUTH_TYPE: "public"
+ MINIO_ACCESS_KEY: "MINIO_ACCESS_KEY"
+ MINIO_SECRET_KEY: "MINIO_SECRET_KEY"
+ MINIO_SERVER_URL: https://oss.odboy.cn # minio 9001端口对应的地址
+ command: server /data --console-address ":9001"
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "100m"
+ ports:
+ - "9002:9000" # 文件上传&预览端口
+ - "9001:9001" # 控制台访问端口
+ # 配置内存
+ deploy:
+ resources:
+ limits:
+ memory: 512M
+ reservations:
+ memory: 512M
diff --git a/docs/docker-env/mysql8/docker-compose-mysql8-online.yml b/docs/docker-env/mysql8/docker-compose-mysql8-online.yml
new file mode 100644
index 00000000..e9eeb24b
--- /dev/null
+++ b/docs/docker-env/mysql8/docker-compose-mysql8-online.yml
@@ -0,0 +1,28 @@
+# 可参考: https://hub.docker.com/_/mysql
+version: '3'
+services:
+ mysql:
+ image: registry.cn-hangzhou.aliyuncs.com/zhengqing/mysql:8.0 # 原镜像`mysql:8.0`
+ container_name: mysql8 # 容器名为'mysql8'
+ restart: unless-stopped # 指定容器退出后的重启策略为始终重启,但是不考虑在Docker守护进程启动时就已经停止了的容器
+ volumes: # 数据卷挂载路径设置,将本机目录映射到容器目录
+ - "./mysql/my.cnf:/etc/mysql/my.cnf"
+ - "./mysql/data:/var/lib/mysql"
+ # - "./mysql/conf.d:/etc/mysql/conf.d"
+ - "./mysql/mysql-files:/var/lib/mysql-files"
+ environment: # 设置环境变量,相当于docker run命令中的-e
+ TZ: Asia/Shanghai
+ LANG: en_US.UTF-8
+ MYSQL_ROOT_PASSWORD: "MYSQL_ROOT_PASSWORD" # 设置root用户密码
+ MYSQL_DATABASE: demo # 初始化的数据库名称
+ privileged: true
+ user: root
+ ports: # 映射端口
+ - "3306:3306"
+ # 配置内存
+ deploy:
+ resources:
+ limits:
+ memory: 1G
+ reservations:
+ memory: 1G
\ No newline at end of file
diff --git a/docs/docker-env/postgresql/docker-compose-postgresql.yml b/docs/docker-env/postgresql/docker-compose-postgresql.yml
new file mode 100644
index 00000000..def33762
--- /dev/null
+++ b/docs/docker-env/postgresql/docker-compose-postgresql.yml
@@ -0,0 +1,27 @@
+version: '3'
+services:
+ postgresql:
+ image: registry.cn-hangzhou.aliyuncs.com/zhengqing/postgres:14.5 # 镜像'postgres:14.5'
+ container_name: postgresql # 容器名为'postgresql'
+ restart: unless-stopped # 指定容器退出后的重启策略为始终重启,但是不考虑在Docker守护进程启动时就已经停止了的容器
+ # 设置环境变量,相当于docker run命令中的-e
+ environment:
+ TZ: Asia/Shanghai
+ LANG: en_US.UTF-8
+ POSTGRES_DB: postgres
+ POSTGRES_USER: postgres
+ POSTGRES_PASSWORD: postgres
+ ALLOW_IP_RANGE: 0.0.0.0/0 # 允许所有ip访问
+ # 数据卷挂载路径设置,将本机目录映射到容器目录
+ volumes:
+ - "./postgresql/data:/var/lib/postgresql/data"
+ # 映射端口
+ ports:
+ - "5432:5432"
+ # 配置内存
+ deploy:
+ resources:
+ limits:
+ memory: 1G
+ reservations:
+ memory: 512M
\ No newline at end of file
diff --git a/docs/docker-env/postgresql/run.sh b/docs/docker-env/postgresql/run.sh
new file mode 100644
index 00000000..1d459b10
--- /dev/null
+++ b/docs/docker-env/postgresql/run.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+docker-compose -f docker-compose-postgresql.yml -p postgresql14 up -d
diff --git a/docs/docker-env/postgresql/stop.sh b/docs/docker-env/postgresql/stop.sh
new file mode 100644
index 00000000..f349b802
--- /dev/null
+++ b/docs/docker-env/postgresql/stop.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+docker-compose -f docker-compose-postgresql.yml -p postgresql14 down
\ No newline at end of file
diff --git a/docs/docker-env/redis7/docker-compose-redis-online.yml b/docs/docker-env/redis7/docker-compose-redis-online.yml
new file mode 100644
index 00000000..e6d6076f
--- /dev/null
+++ b/docs/docker-env/redis7/docker-compose-redis-online.yml
@@ -0,0 +1,22 @@
+version: '3'
+services:
+ redis:
+ image: registry.cn-hangzhou.aliyuncs.com/zhengqing/redis:7.0.5 # 镜像'redis:7.0.5'
+ container_name: redis # 容器名为'redis'
+ restart: unless-stopped # 指定容器退出后的重启策略为始终重启,但是不考虑在Docker守护进程启动时就已经停止了的容器
+ command: redis-server /etc/redis/redis.conf --appendonly no # 启动redis服务并添加密码为:123456,默认不开启redis-aof方式持久化配置
+ environment: # 设置环境变量,相当于docker run命令中的-e
+ TZ: Asia/Shanghai
+ LANG: en_US.UTF-8
+ volumes: # 数据卷挂载路径设置,将本机目录映射到容器目录
+ - "./redis/data:/data"
+ - "./redis/config/redis.conf:/etc/redis/redis.conf" # `redis.conf`文件内容`http://download.redis.io/redis-stable/redis.conf`
+ ports: # 映射端口
+ - "6379:6379"
+ # 配置内存
+ deploy:
+ resources:
+ limits:
+ memory: 128M
+ reservations:
+ memory: 128M
\ No newline at end of file
diff --git a/docs/help/应用迭代定义.txt b/docs/help/应用迭代定义.txt
deleted file mode 100644
index daad3b4d..00000000
--- a/docs/help/应用迭代定义.txt
+++ /dev/null
@@ -1 +0,0 @@
-一次迭代=N次尝试(流水线实例) + 发布分支(git分支)
\ No newline at end of file
diff --git a/docs/nginx/cutejava-api.odboy.cn.conf b/docs/nginx/cutejava-api.odboy.cn.conf
index 821d68eb..22641bc4 100644
--- a/docs/nginx/cutejava-api.odboy.cn.conf
+++ b/docs/nginx/cutejava-api.odboy.cn.conf
@@ -1,28 +1,30 @@
-server
-{
- # 监听[配置]
- listen 443 ssl;
- server_name cutejava-api.odboy.cn;
- access_log /var/log/cutejava-api.odboy.cn_access.log main;
- charset utf-8;
- client_max_body_size 5m;
-
- # SSL[配置]
- ssl_certificate /usr/local/nginx/conf/ssl/odboy.cn.pem;
- ssl_certificate_key /usr/local/nginx/conf/ssl/odboy.cn.key;
- ssl_session_timeout 5m;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
- ssl_prefer_server_ciphers on;
-
- gzip_static on;
-
- location / {
- proxy_pass http://127.0.0.1:8000;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header X-Forwarded-Port $server_port;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- }
-}
+server {
+ listen 443 ssl;
+ server_name cutejava-api.odboy.cn;
+ access_log /var/log/cutejava-api.odboy.cn_access.log main;
+ charset utf-8;
+
+ ssl_certificate /usr/local/nginx/conf/ssl/odboy.cn.pem;
+ ssl_certificate_key /usr/local/nginx/conf/ssl/odboy.cn.key;
+ ssl_session_timeout 15m;
+ ssl_protocols TLSV1 TLSv1.1 TLSv1.2;
+ ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
+ ssl_prefer_server_ciphers on;
+ add_header X-Cache $upstream_cache_status;expires 12h;
+
+ location / {
+ proxy_set_header Host $http_host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ proxy_set_header X-NginX-Proxy true;
+
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "upgrade";
+ chunked_transfer_encoding off;
+
+ proxy_connect_timeout 600;
+ proxy_pass http://127.0.0.1:8000;
+ }
+}
\ No newline at end of file
diff --git a/docs/nginx/cutejava.odboy.cn.conf b/docs/nginx/cutejava.odboy.cn.conf
index 32fa473c..aa14bf7b 100644
--- a/docs/nginx/cutejava.odboy.cn.conf
+++ b/docs/nginx/cutejava.odboy.cn.conf
@@ -1,31 +1,33 @@
server
{
- # 监听[配置]
- listen 443 ssl;
- server_name cutejava.odboy.cn;
- access_log /var/log/cutejava.odboy.cn_access.log main;
- charset utf-8;
- client_max_body_size 5m;
+ # 监听[配置]
+ listen 443 ssl;
+ server_name cutejava.odboy.cn;
+ access_log /var/log/cutejava.odboy.cn_access.log main;
+ charset utf-8;
+ client_max_body_size 5m;
- # SSL[配置]
- ssl_certificate /usr/local/nginx/conf/ssl/odboy.cn.pem;
- ssl_certificate_key /usr/local/nginx/conf/ssl/odboy.cn.key;
- ssl_session_timeout 5m;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
- ssl_prefer_server_ciphers on;
+ # SSL[配置]
+ ssl_certificate /usr/local/nginx/conf/ssl/odboy.cn.pem;
+ ssl_certificate_key /usr/local/nginx/conf/ssl/odboy.cn.key;
+ ssl_session_timeout 5m;
+ ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
+ ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
+ ssl_prefer_server_ciphers on;
- gzip_static on;
+ # zip压缩
+ gzip_static on;
- index index.html;
- # dist上传的路径
- root /root/dist;
- # 避免访问出现 404 错误
- location / {
- try_files $uri $uri/ @router;
- index index.html;
- }
- location @router {
- rewrite ^.*$ /index.html last;
- }
-}
+ # 目录和首页
+ root /root/dist;
+ index index.html;
+
+ location / {
+ try_files $uri $uri/ @router;
+ index index.html;
+ }
+
+ location @router {
+ rewrite ^.*$ /index.html last;
+ }
+}
\ No newline at end of file