Merge branch 'develop' of github.com:jc21/nginx-proxy-manager into feature/26-custom-pages
This commit is contained in:
commit
eed9c9650f
7 changed files with 33 additions and 15 deletions
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
@ -81,11 +81,11 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build Master') {
|
stage('Build Master') {
|
||||||
parallel {
|
|
||||||
stage('x86_64') {
|
|
||||||
when {
|
when {
|
||||||
branch 'master'
|
branch 'master'
|
||||||
}
|
}
|
||||||
|
parallel {
|
||||||
|
stage('x86_64') {
|
||||||
steps {
|
steps {
|
||||||
ansiColor('xterm') {
|
ansiColor('xterm') {
|
||||||
// Codebase
|
// Codebase
|
||||||
|
@ -127,9 +127,6 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('armhf') {
|
stage('armhf') {
|
||||||
when {
|
|
||||||
branch 'master'
|
|
||||||
}
|
|
||||||
agent {
|
agent {
|
||||||
label 'armhf'
|
label 'armhf'
|
||||||
}
|
}
|
||||||
|
@ -173,9 +170,6 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('arm64') {
|
stage('arm64') {
|
||||||
when {
|
|
||||||
branch 'master'
|
|
||||||
}
|
|
||||||
agent {
|
agent {
|
||||||
label 'arm64'
|
label 'arm64'
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Nginx Proxy Manager
|
# Nginx Proxy Manager
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Nginx Proxy Manager
|
# Nginx Proxy Manager
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
|
|
|
@ -143,3 +143,23 @@ Password: changeme
|
||||||
```
|
```
|
||||||
|
|
||||||
Immediately after logging in with this default user you will be asked to modify your details and change your password.
|
Immediately after logging in with this default user you will be asked to modify your details and change your password.
|
||||||
|
|
||||||
|
|
||||||
|
### Advanced Options
|
||||||
|
|
||||||
|
#### X-FRAME-OPTIONS Header
|
||||||
|
|
||||||
|
You can configure the [`X-FRAME-OPTIONS`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options) header
|
||||||
|
value by specifying it as a Docker environment variable. The default if not specified is `deny`.
|
||||||
|
|
||||||
|
```yml
|
||||||
|
...
|
||||||
|
environment:
|
||||||
|
X_FRAME_OPTIONS: "sameorigin"
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
... -e "X_FRAME_OPTIONS=sameorigin" ...
|
||||||
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "nginx-proxy-manager",
|
"name": "nginx-proxy-manager",
|
||||||
"version": "2.0.9",
|
"version": "2.0.10",
|
||||||
"description": "A beautiful interface for creating Nginx endpoints",
|
"description": "A beautiful interface for creating Nginx endpoints",
|
||||||
"main": "src/backend/index.js",
|
"main": "src/backend/index.js",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -40,11 +40,17 @@ app.use(require('./lib/express/cors'));
|
||||||
|
|
||||||
// General security/cache related headers + server header
|
// General security/cache related headers + server header
|
||||||
app.use(function (req, res, next) {
|
app.use(function (req, res, next) {
|
||||||
|
let x_frame_options = 'DENY';
|
||||||
|
|
||||||
|
if (typeof process.env.X_FRAME_OPTIONS !== 'undefined' && process.env.X_FRAME_OPTIONS) {
|
||||||
|
x_frame_options = process.env.X_FRAME_OPTIONS;
|
||||||
|
}
|
||||||
|
|
||||||
res.set({
|
res.set({
|
||||||
'Strict-Transport-Security': 'includeSubDomains; max-age=631138519; preload',
|
'Strict-Transport-Security': 'includeSubDomains; max-age=631138519; preload',
|
||||||
'X-XSS-Protection': '0',
|
'X-XSS-Protection': '0',
|
||||||
'X-Content-Type-Options': 'nosniff',
|
'X-Content-Type-Options': 'nosniff',
|
||||||
'X-Frame-Options': 'DENY',
|
'X-Frame-Options': x_frame_options,
|
||||||
'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate',
|
'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate',
|
||||||
Pragma: 'no-cache',
|
Pragma: 'no-cache',
|
||||||
Expires: 0
|
Expires: 0
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
const logger = require('./logger').global;
|
const logger = require('./logger').global;
|
||||||
|
|
||||||
function appStart () {
|
function appStart () {
|
||||||
|
|
Loading…
Reference in a new issue