Skip to content

Commit eed9c96

Browse files
committed
Merge branch 'develop' of github.com:jc21/nginx-proxy-manager into feature/26-custom-pages
2 parents 4f386de + 6f1d38a commit eed9c96

File tree

7 files changed

+33
-15
lines changed

7 files changed

+33
-15
lines changed

Jenkinsfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ pipeline {
8181
}
8282
}
8383
stage('Build Master') {
84+
when {
85+
branch 'master'
86+
}
8487
parallel {
8588
stage('x86_64') {
86-
when {
87-
branch 'master'
88-
}
8989
steps {
9090
ansiColor('xterm') {
9191
// Codebase
@@ -127,9 +127,6 @@ pipeline {
127127
}
128128
}
129129
stage('armhf') {
130-
when {
131-
branch 'master'
132-
}
133130
agent {
134131
label 'armhf'
135132
}
@@ -173,9 +170,6 @@ pipeline {
173170
}
174171
}
175172
stage('arm64') {
176-
when {
177-
branch 'master'
178-
}
179173
agent {
180174
label 'arm64'
181175
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Nginx Proxy Manager
44

5-
![Version](https://img.shields.io/badge/version-2.0.9-green.svg?style=for-the-badge)
5+
![Version](https://img.shields.io/badge/version-2.0.10-green.svg?style=for-the-badge)
66
![Stars](https://img.shields.io/docker/stars/jc21/nginx-proxy-manager.svg?style=for-the-badge)
77
![Pulls](https://img.shields.io/docker/pulls/jc21/nginx-proxy-manager.svg?style=for-the-badge)
88

doc/DOCKERHUB.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Nginx Proxy Manager
44

5-
![Version](https://img.shields.io/badge/version-2.0.9-green.svg?style=for-the-badge)
5+
![Version](https://img.shields.io/badge/version-2.0.10-green.svg?style=for-the-badge)
66
![Stars](https://img.shields.io/docker/stars/jc21/nginx-proxy-manager.svg?style=for-the-badge)
77
![Pulls](https://img.shields.io/docker/pulls/jc21/nginx-proxy-manager.svg?style=for-the-badge)
88

doc/INSTALL.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,23 @@ Password: changeme
143143
```
144144
145145
Immediately after logging in with this default user you will be asked to modify your details and change your password.
146+
147+
148+
### Advanced Options
149+
150+
#### X-FRAME-OPTIONS Header
151+
152+
You can configure the [`X-FRAME-OPTIONS`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options) header
153+
value by specifying it as a Docker environment variable. The default if not specified is `deny`.
154+
155+
```yml
156+
...
157+
environment:
158+
X_FRAME_OPTIONS: "sameorigin"
159+
...
160+
```
161+
162+
```
163+
... -e "X_FRAME_OPTIONS=sameorigin" ...
164+
```
165+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nginx-proxy-manager",
3-
"version": "2.0.9",
3+
"version": "2.0.10",
44
"description": "A beautiful interface for creating Nginx endpoints",
55
"main": "src/backend/index.js",
66
"devDependencies": {

src/backend/app.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,17 @@ app.use(require('./lib/express/cors'));
4040

4141
// General security/cache related headers + server header
4242
app.use(function (req, res, next) {
43+
let x_frame_options = 'DENY';
44+
45+
if (typeof process.env.X_FRAME_OPTIONS !== 'undefined' && process.env.X_FRAME_OPTIONS) {
46+
x_frame_options = process.env.X_FRAME_OPTIONS;
47+
}
48+
4349
res.set({
4450
'Strict-Transport-Security': 'includeSubDomains; max-age=631138519; preload',
4551
'X-XSS-Protection': '0',
4652
'X-Content-Type-Options': 'nosniff',
47-
'X-Frame-Options': 'DENY',
53+
'X-Frame-Options': x_frame_options,
4854
'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate',
4955
Pragma: 'no-cache',
5056
Expires: 0

src/backend/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/env node
22

3-
'use strict';
4-
53
const logger = require('./logger').global;
64

75
function appStart () {

0 commit comments

Comments
 (0)