Skip to content

Commit e1bb8a8

Browse files
committed
Merge branch 'zh-v2.12.0' into develop-zh
2 parents 79e0ab2 + d18da2d commit e1bb8a8

File tree

181 files changed

+7837
-5266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+7837
-5266
lines changed

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.11.3
1+
2.12.0

Jenkinsfile

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ pipeline {
5656
sh 'sed -i -E "s/(version-)[0-9]+\\.[0-9]+\\.[0-9]+(-green)/\\1${BUILD_VERSION}\\2/" README.md'
5757
}
5858
}
59+
stage('Docker Login') {
60+
steps {
61+
withCredentials([usernamePassword(credentialsId: 'jc21-dockerhub', passwordVariable: 'dpass', usernameVariable: 'duser')]) {
62+
sh 'docker login -u "${duser}" -p "${dpass}"'
63+
}
64+
}
65+
}
5966
}
6067
}
6168
stage('Builds') {
@@ -120,6 +127,11 @@ pipeline {
120127
junit 'test/results/junit/*'
121128
sh 'docker-compose down --remove-orphans --volumes -t 30 || true'
122129
}
130+
unstable {
131+
dir(path: 'testing/results') {
132+
archiveArtifacts(allowEmptyArchive: true, artifacts: '**/*', excludes: '**/*.xml')
133+
}
134+
}
123135
}
124136
}
125137
stage('Test Mysql') {
@@ -148,6 +160,11 @@ pipeline {
148160
junit 'test/results/junit/*'
149161
sh 'docker-compose down --remove-orphans --volumes -t 30 || true'
150162
}
163+
unstable {
164+
dir(path: 'testing/results') {
165+
archiveArtifacts(allowEmptyArchive: true, artifacts: '**/*', excludes: '**/*.xml')
166+
}
167+
}
151168
}
152169
}
153170
stage('MultiArch Build') {
@@ -157,10 +174,7 @@ pipeline {
157174
}
158175
}
159176
steps {
160-
withCredentials([usernamePassword(credentialsId: 'jc21-dockerhub', passwordVariable: 'dpass', usernameVariable: 'duser')]) {
161-
sh 'docker login -u "${duser}" -p "${dpass}"'
162-
sh "./scripts/buildx --push ${buildxPushTags}"
163-
}
177+
sh "./scripts/buildx --push ${buildxPushTags}"
164178
}
165179
}
166180
stage('Docs / Comment') {
@@ -200,20 +214,13 @@ pipeline {
200214
always {
201215
sh 'echo Reverting ownership'
202216
sh 'docker run --rm -v "$(pwd):/data" jc21/ci-tools chown -R "$(id -u):$(id -g)" /data'
203-
}
204-
success {
205-
juxtapose event: 'success'
206-
sh 'figlet "SUCCESS"'
217+
printResult(true)
207218
}
208219
failure {
209220
archiveArtifacts(artifacts: 'debug/**/*.*', allowEmptyArchive: true)
210-
juxtapose event: 'failure'
211-
sh 'figlet "FAILURE"'
212221
}
213222
unstable {
214223
archiveArtifacts(artifacts: 'debug/**/*.*', allowEmptyArchive: true)
215-
juxtapose event: 'unstable'
216-
sh 'figlet "UNSTABLE"'
217224
}
218225
}
219226
}

README-en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<p align="center">
22
<img src="https://nginxproxymanager.com/github.png">
33
<br><br>
4-
<img src="https://img.shields.io/badge/version-2.11.3-green.svg?style=for-the-badge">
4+
<img src="https://img.shields.io/badge/version-2.12.0-green.svg?style=for-the-badge">
55
<a href="https://hub.docker.com/repository/docker/jc21/nginx-proxy-manager">
66
<img src="https://img.shields.io/docker/stars/jc21/nginx-proxy-manager.svg?style=for-the-badge">
77
</a>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<br>
77
</p>
88

9-
本项目是基于 [NginxProxyManager/nginx-proxy-manager](https://github.com/NginxProxyManager/nginx-proxy-manager) 翻译的中文版本,该项目属于一个预构建的docker映像,它可以让你轻松地部署到你的网站上运行,包括免费的SSL,而不需要知道太多关于 Nginx 或 Let's Encrypt 的信息。
9+
本项目是基于 [NginxProxyManager/nginx-proxy-manager](https://github.com/NginxProxyManager/nginx-proxy-manager) 翻译的中文版本,该项目属于一个预构建的docker映像,它可以让你轻松地部署到你的网站上运行,包括免费的SSL,而不需要知道太多关于 Nginx 或 Let's Encrypt 的信息。
1010

1111
![](http://image.xiaoxin.pro/2022/05/16/75687b5bfffbe.png)
1212

README.md.rej

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ diff a/README.md b/README.md (rejected hunks)
33
-<p align="center">
44
- <img src="https://nginxproxymanager.com/github.png">
55
- <br><br>
6-
- <img src="https://img.shields.io/badge/version-2.11.3-green.svg?style=for-the-badge">
6+
- <img src="https://img.shields.io/badge/version-2.12.0-green.svg?style=for-the-badge">
77
- <a href="https://hub.docker.com/repository/docker/jc21/nginx-proxy-manager">
88
- <img src="https://img.shields.io/docker/stars/jc21/nginx-proxy-manager.svg?style=for-the-badge">
99
- </a>
@@ -20,13 +20,13 @@ diff a/README.md b/README.md (rejected hunks)
2020
-- [Screenshots](https://nginxproxymanager.com/screenshots/)
2121
-
2222
-## Project Goal
23-
23+
2424
-I created this project to fill a personal need to provide users with an easy way to accomplish reverse
2525
-proxying hosts with SSL termination and it had to be so easy that a monkey could do it. This goal hasn't changed.
2626
-While there might be advanced options they are optional and the project should be as simple as possible
2727
-so that the barrier for entry here is low.
2828
+[Original English README](https://github.com/xiaoxinpro/nginx-proxy-manager-zh/blob/develop-zh/README-en.md)
29-
29+
3030
-<a href="https://www.buymeacoffee.com/jc21" target="_blank"><img src="http://public.jc21.com/github/by-me-a-coffee.png" alt="Buy Me A Coffee" style="height: 51px !important;width: 217px !important;" ></a>
3131
-
3232
-
@@ -42,36 +42,36 @@ diff a/README.md b/README.md (rejected hunks)
4242
+ <img src="https://nginxproxymanager.com/github.png">
4343
+ <br>
4444
+</p>
45-
46-
+本项目是基于 [NginxProxyManager/nginx-proxy-manager](https://github.com/NginxProxyManager/nginx-proxy-manager) 翻译的中文版本,该项目属于一个预构建的docker映像,它可以让你轻松地部署到你的网站上运行,包括免费的SSL,而不需要知道太多关于 Nginx 或 Let's Encrypt 的信息。
47-
45+
46+
+本项目是基于 [NginxProxyManager/nginx-proxy-manager](https://github.com/NginxProxyManager/nginx-proxy-manager) 翻译的中文版本,该项目属于一个预构建的docker映像,它可以让你轻松地部署到你的网站上运行,包括免费的SSL,而不需要知道太多关于 Nginx 或 Let's Encrypt 的信息。
47+
4848
-## Hosting your home network
4949
+![](http://image.xiaoxin.pro/2022/05/16/75687b5bfffbe.png)
50-
50+
5151
-I won't go in to too much detail here but here are the basics for someone new to this self-hosted world.
5252
+## 快速部署
53-
53+
5454
-1. Your home router will have a Port Forwarding section somewhere. Log in and find it
5555
-2. Add port forwarding for port 80 and 443 to the server hosting this project
5656
-3. Configure your domain name details to point to your home, either with a static ip or a service like DuckDNS or [Amazon Route53](https://github.com/jc21/route53-ddns)
5757
-4. Use the Nginx Proxy Manager as your gateway to forward to your other web based services
5858
+### 1. 环境部署
59-
59+
6060
-## Quick Setup
6161
+安装Docker和Docker-compose
62-
62+
6363
-1. Install Docker and Docker-Compose
6464
+- [Docker官方安装文档(英文)](https://docs.docker.com/install/)
6565
+- [Docker-Compose官方安装文档(英文)](https://docs.docker.com/compose/install/)
6666
+- **[Docker和Docker-compose安装文档(中文)](https://blog.csdn.net/zhangzejin3883/article/details/124778945)**
67-
67+
6868
-- [Docker Install documentation](https://docs.docker.com/install/)
6969
-- [Docker-Compose Install documentation](https://docs.docker.com/compose/install/)
7070
+### 2. 创建YAML文件
71-
71+
7272
-2. Create a docker-compose.yml file similar to this:
7373
+创建一个 `docker-compose.yml` 文件:
74-
74+
7575
```yml
7676
-version: '3.8'
7777
+version: '3'

backend/.vscode/settings.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

backend/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ app.use(function (req, res, next) {
5252
});
5353

5454
app.use(require('./lib/express/jwt')());
55-
app.use('/', require('./routes/api/main'));
55+
app.use('/', require('./routes/main'));
5656

5757
// production error handler
5858
// no stacktraces leaked to user

backend/config/default.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"database": {
3-
"engine": "mysql",
3+
"engine": "mysql2",
44
"host": "db",
55
"name": "npm",
66
"user": "npm",

0 commit comments

Comments
 (0)