diff --git a/.github/workflows/create-pr-from-push.yml b/.github/workflows/create-pr-from-push.yml deleted file mode 100644 index 7c0e8a5a0..000000000 --- a/.github/workflows/create-pr-from-push.yml +++ /dev/null @@ -1,17 +0,0 @@ -on: - push: - branches: - - 'pr@**' - - 'repr@**' - -name: 针对特定分支名自动创建 PR - -jobs: - generic_handler: - name: 自动创建 PR - runs-on: ubuntu-latest - steps: - - name: Create pull request - uses: jumpserver/action-generic-handler@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }} diff --git a/.github/workflows/issue-close.yml b/.github/workflows/issue-close.yml deleted file mode 100644 index bb49b5877..000000000 --- a/.github/workflows/issue-close.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Issue Close Check - -on: - issues: - types: [closed] - -jobs: - issue-close-remove-labels: - runs-on: ubuntu-latest - steps: - - name: Remove labels - uses: actions-cool/issues-helper@v2 - if: ${{ !github.event.issue.pull_request }} - with: - actions: 'remove-labels' - labels: '状态:待处理' \ No newline at end of file diff --git a/.github/workflows/issue-comment.yml b/.github/workflows/issue-comment.yml deleted file mode 100644 index e9e3fbc79..000000000 --- a/.github/workflows/issue-comment.yml +++ /dev/null @@ -1,38 +0,0 @@ -on: - issue_comment: - types: [created] - -name: Add issues workflow labels - -jobs: - add-label-if-is-author: - runs-on: ubuntu-latest - if: ${{ (github.event.issue.user.id == github.event.comment.user.id) && (!github.event.issue.pull_request) }} - steps: - - name: Add require handle label - uses: actions-cool/issues-helper@v2 - with: - actions: 'add-labels' - labels: '状态:待处理' - - - name: Remove require reply label - uses: actions-cool/issues-helper@v2 - with: - actions: 'remove-labels' - labels: '状态:待用户反馈' - - add-label-if-not-author: - runs-on: ubuntu-latest - if: ${{ (github.event.issue.user.id != github.event.comment.user.id) && (!github.event.issue.pull_request) && (github.event.issue.state == 'open') }} - steps: - - name: Add require replay label - uses: actions-cool/issues-helper@v2 - with: - actions: 'add-labels' - labels: '状态:待用户反馈' - - - name: Remove require handle label - uses: actions-cool/issues-helper@v2 - with: - actions: 'remove-labels' - labels: '状态:待处理' diff --git a/.github/workflows/issue-open.yml b/.github/workflows/issue-open.yml deleted file mode 100644 index 232d5da29..000000000 --- a/.github/workflows/issue-open.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Issue Open Check - -on: - issues: - types: [opened] - -jobs: - issue-open-add-labels: - runs-on: ubuntu-latest - steps: - - name: Add labels - uses: actions-cool/issues-helper@v2 - if: ${{ !github.event.issue.pull_request }} - with: - actions: 'add-labels' - labels: '状态:待处理' \ No newline at end of file diff --git a/.github/workflows/sync2gitee.yml b/.github/workflows/sync2gitee.yml new file mode 100644 index 000000000..637a22b9e --- /dev/null +++ b/.github/workflows/sync2gitee.yml @@ -0,0 +1,16 @@ +name: sync2gitee +on: [push] + +jobs: + repo-sync: + runs-on: ubuntu-latest + steps: + - name: Mirror the Github organization repos to Gitee. + uses: Yikun/hub-mirror-action@master + with: + src: 'github/1Panel-dev' + dst: 'gitee/fit2cloud-xlab' + dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} + dst_token: ${{ secrets.GITEE_TOKEN }} + static_list: "1Panel" + force_update: true diff --git a/Makefile b/Makefile index 3793067a5..a01cd7bf1 100644 --- a/Makefile +++ b/Makefile @@ -11,15 +11,19 @@ SERVER_PATH=$(BASE_PAH)/backend MAIN= $(BASE_PAH)/cmd/server/main.go APP_NAME=1panel -build_web: +build_frontend: cd $(WEB_PATH) && npm install && npm run build:dev -build_bin: +build_backend_on_linux: cd $(SERVER_PATH) \ - && CGO_ENABLED=1 GOOS=$(GOOS) GOARCH=$(GOARCH) $(GOBUILD) -trimpath -ldflags '-s -w --extldflags "-static -fpic"' -tags osusergo -o $(BUILD_PATH)/$(APP_NAME) $(MAIN) + && CGO_ENABLED=1 GOOS=$(GOOS) GOARCH=$(GOARCH) $(GOBUILD) -trimpath -ldflags '-s -w --extldflags "-static -fpic"' -tags 'osusergo,netgo' -o $(BUILD_PATH)/$(APP_NAME) $(MAIN) -build_linux_on_mac: +build_backend_on_darwin: cd $(SERVER_PATH) \ && CGO_ENABLED=1 GOOS=linux GOARCH=amd64 CC=x86_64-linux-musl-gcc CXX=x86_64-linux-musl-g++ $(GOBUILD) -trimpath -ldflags '-s -w --extldflags "-static -fpic"' -o $(BUILD_PATH)/$(APP_NAME) $(MAIN) -build_all: build_web build_bin \ No newline at end of file +build_backend_on_archlinux: + cd $(SERVER_PATH) \ + && CGO_ENABLED=1 GOOS=$(GOOS) GOARCH=$(GOARCH) $(GOBUILD) -trimpath -ldflags '-s -w --extldflags "-fpic"' -tags osusergo -o $(BUILD_PATH)/$(APP_NAME) $(MAIN) + +build_all: build_frontend build_backend_on_linux diff --git a/README.md b/README.md index ae6b8585a..aae8c1758 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[README_EN.md](README_EN.md)
现代化、开源的 Linux 服务器运维管理面板
@@ -18,7 +19,7 @@ ## UI 展示 -![UI展示](https://1panel.oss-cn-hangzhou.aliyuncs.com/img/overview.png) +![UI展示](https://resource.fit2cloud.com/1panel/img/overview.png) ## 快速开始 @@ -47,13 +48,13 @@ curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_ **微信交流群** - + ## 安全说明 如果您在使用过程中发现任何安全问题,请通过以下方式直接联系我们: -- 邮箱:support@fit2cloud.com +- 邮箱:support@fit2cloud.com - 电话:400-052-0755 ## Star History @@ -62,7 +63,7 @@ curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_ ## License -Copyright (c) 2014-2023 飞致云 FIT2CLOUD, All rights reserved. +Copyright (c) 2014-2023 [FIT2CLOUD 飞致云](https://fit2cloud.com/), All rights reserved. Licensed under The GNU General Public License version 3 (GPLv3) (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/README_EN.md b/README_EN.md new file mode 100644 index 000000000..7f8b6733c --- /dev/null +++ b/README_EN.md @@ -0,0 +1,72 @@ +[中文 README.md](README.md) +
+Modern and Open-Source Linux Server Operation and Management Panel
+ + +------------------------------ + +1Panel is a modern and Open-Source linux server operation and management panel, the functions and advantages of 1Panel include: + +- **Quick website building**: Deeply integrated with Wordpress and [Halo](https://github.com/halo-dev/halo/), with one-click solutions for domain name binding, SSL certificate configuration, and more; +- **Efficient management**: Easily manage Linux servers through the web interface, including application management, host monitoring, file management, database management, container management, and more; +- **Secure and reliable**: Minimal vulnerability exposure, with firewall and security audit functions provided; +- **One-click backup**: Support for one-click backup and restore, with backup data stored in the cloud and never lost. + +## UI Display + +![UI Display](https://resource.fit2cloud.com/1panel/img/overview_en.png) + +## Quick Start + +**Online Demo** + +- Address: