重命名项目并补充插件与安全整改文档

This commit is contained in:
xuans committed 2026-08-24 15:27:19 +08:00
1 parent a6049bf052
commit e91a64136b
131 files changed
+1306 -771

No files matched your search

+4 -4
View File
@@ -13,12 +13,12 @@ body:
required: true
- label: 我搜索了issues,没有发现已提出的类似问题。
required: true
- label: 我已经阅读了项目[Readme](https://github.com/Jinnrry/PMail/blob/master/README_CN.md)和[常见问题](https://github.com/Jinnrry/PMail/discussions/170)
- label: 我已经阅读了项目[Readme](https://git.pcux.cn/xuans/Smail/src/branch/main/README_CN.md)和[常见问题](https://git.pcux.cn/xuans/Smail/issues)
required: true
- type: input
attributes:
label: 版本
description: 使用的PMail版本
description: 使用的Smail版本
validations:
required: true
- type: markdown
@@ -31,9 +31,9 @@ body:
### 对于日志
请先将日志等级设置为 debug.
重启 PMail ,再按复现方式操作,尽量减少日志中的无关部分。
重启 Smail ,再按复现方式操作,尽量减少日志中的无关部分。
记得删除有关个人信息的部分。
提供 PMail 的日志,而不是面板或者别的东西输出的日志。
提供 Smail 的日志,而不是面板或者别的东西输出的日志。
### 最后
在去掉不影响复现的部分后,提供实际运行的**完整**文件,不要出于自己的判断只提供入站出站或者几行日志。
+1 -1
View File
@@ -1,4 +1,4 @@
contact_links:
- name: 部署错误及使用讨论 / Community Support and Questions
url: https://github.com/Jinnrry/PMail/discussions
url: https://git.pcux.cn/xuans/Smail/issues
about: 非程序异常请前往Discussions讨论 / Please ask and answer questions there. The issue tracker is for issues with core.
+1 -1
View File
@@ -7,4 +7,4 @@ assignees: ''
---
## 请完整读完[README](https://github.com/Jinnrry/PMail/blob/master/README_CN.md)再提问! / Before asking questions, please read the [README](https://github.com/Jinnrry/PMail/blob/master/README.md) !
## 请完整读完[README](https://git.pcux.cn/xuans/Smail/src/branch/main/README_CN.md)再提问! / Before asking questions, please read the [README](https://git.pcux.cn/xuans/Smail/src/branch/main/README.md) !
-70
View File
@@ -1,70 +0,0 @@
name: Docker Image CI
on:
workflow_dispatch:
release:
types: [released]
env:
REGISTRY: ghcr.io
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Get version
id: get_version
run: |
echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> ${GITHUB_ENV}
echo "${GITHUB_REF/refs\/tags\//}"
echo "${GITHUB_REF#refs/*/}"
echo "${GITHUB_REF}"
- uses: actions/checkout@v3
- name: set lower case repository name
run: |
echo "REPOSITORY_LC=${REPOSITORY,,}" >> ${GITHUB_ENV}
env:
REPOSITORY: '${{ github.repository }}'
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: actions/setup-node@v4
- name: Build FE
run: |
echo "$(git show -s --format=%H)"
echo "GITHASH=$(git show -s --format=%H)" >> ${GITHUB_ENV}
make build_fe
- name: Log in to the Container registry
uses: docker/login-action@v2.1.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/build-push-action@v4
with:
build-args: |
VERSION=${{ env.VERSION }}
GITHASH=${{ env.GITHASH }}
context: .
file: ./DockerfileGithubAction
platforms: |
linux/386
linux/amd64
linux/arm/v7
linux/arm64
push: true
tags: |
${{ env.REGISTRY }}/${{ env.REPOSITORY_LC }}:${{ env.VERSION }}
${{ env.REGISTRY }}/${{ env.REPOSITORY_LC }}:latest
-68
View File
@@ -1,68 +0,0 @@
name: Docker Image CI Pre
on:
workflow_dispatch:
release:
types: [ prereleased ]
env:
REGISTRY: ghcr.io
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Get version
id: get_version
run: |
echo "VERSION=pre${GITHUB_REF/refs\/tags\//}" >> ${GITHUB_ENV}
echo "${GITHUB_REF/refs\/tags\//}"
echo "${GITHUB_REF#refs/*/}"
echo "${GITHUB_REF}"
- uses: actions/checkout@v3
- name: set lower case repository name
run: |
echo "REPOSITORY_LC=${REPOSITORY,,}" >> ${GITHUB_ENV}
env:
REPOSITORY: '${{ github.repository }}'
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: actions/setup-node@v4
- name: Build FE
run: |
echo "GITHASH=$(git show -s --format=%H)" >> ${GITHUB_ENV}
make build_fe
- name: Log in to the Container registry
uses: docker/login-action@v2.1.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/build-push-action@v4
with:
build-args: |
VERSION=${{ env.VERSION }}
GITHASH=${{ env.GITHASH }}
context: .
file: ./DockerfileGithubAction
platforms: |
linux/386
linux/amd64
linux/arm/v7
linux/arm64
push: true
tags: |
${{ env.REGISTRY }}/${{ env.REPOSITORY_LC }}:${{ env.VERSION }}
+2 -2
View File
@@ -37,14 +37,14 @@ jobs:
check-latest: true
- name: Gen output name
run: |
echo "FILENAME=pmail_${{ matrix.goos }}_${{ matrix.goarch }}" >> ${GITHUB_ENV}
echo "FILENAME=smail_${{ matrix.goos }}_${{ matrix.goarch }}" >> ${GITHUB_ENV}
echo "WCFILENAME=wechat_push_${{ matrix.goos }}_${{ matrix.goarch }}" >> ${GITHUB_ENV}
echo "SPAMBLOCKFILENAME=spam_block_${{ matrix.goos }}_${{ matrix.goarch }}" >> ${GITHUB_ENV}
echo "ZIPNAME=${{ matrix.goos }}_${{ matrix.goarch }}" >> ${GITHUB_ENV}
- name: Rename Windows File
if: matrix.goos == 'windows'
run: |
echo "FILENAME=pmail_${{ matrix.goos }}_${{ matrix.goarch }}.exe" >> ${GITHUB_ENV}
echo "FILENAME=smail_${{ matrix.goos }}_${{ matrix.goarch }}.exe" >> ${GITHUB_ENV}
echo "WCFILENAME=wechat_push_${{ matrix.goos }}_${{ matrix.goarch }}.exe" >> ${GITHUB_ENV}
echo "SPAMBLOCKFILENAME=spam_block_${{ matrix.goos }}_${{ matrix.goarch }}.exe" >> ${GITHUB_ENV}
- name: FE Build
-69
View File
@@ -1,69 +0,0 @@
name: PR - Docker unit test
on:
pull_request:
branches:
- master
types: [opened, reopened, synchronize, edited]
# Please, always create a pull request instead of push to master.
permissions:
contents: read
pull-requests: write
concurrency:
group: docker-test-${{ github.ref_name }}
cancel-in-progress: true
jobs:
test:
name: Docker tests
runs-on: ubuntu-latest
services:
mysql:
image: mysql
env:
MYSQL_DATABASE: pmail
MYSQL_ROOT_PASSWORD: githubTest
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
postgres:
image: postgres
env:
POSTGRESQL_PASSWORD: githubTest
container:
image: golang
env:
REPOSITORY: ${{ github.repository }}
TRIGGERING_ACTOR: ${{ github.triggering_actor }}
SOURCE_BRANCH: ${{ github.ref_name }}
COMMIT: ${{ github.workflow_sha }}
EVENT: ${{ github.event_name}}
steps:
- name: Setup Node.js environment
run: apt update && apt install -y nodejs npm
- name: Checkout
uses: actions/checkout@v4
- name: Pull Request Labeler
if: ${{ failure() }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr edit ${{ github.event.pull_request.number }} --add-label "Auto: Test Failed"
- name: Install Dependencies
run: npm install --global yarn
- name: FE build
run: make build_fe
- name: Run Test Mysql
run: make test_mysql
- name: Run Test
run: make test
# - name: Run postgres
# run: make test_postgres