Skip to content

Commit

Permalink
Merge pull request #416 from jc21/develop
Browse files Browse the repository at this point in the history
v2.2.4
  • Loading branch information
jc21 committed May 21, 2020
2 parents 4c60bfb + 1ff87bb commit 7084473
Show file tree
Hide file tree
Showing 21 changed files with 327 additions and 361 deletions.
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/product_support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Product Support
about: Need help configuring the software?
title: ''
labels: product-support
assignees: ''

---

**Checklist**
- Please read the [setup instructions](https://nginxproxymanager.com/setup/)
- Please read the [FAQ](https://nginxproxymanager.com/faq/)

**What is troubling you?**

_Clear and concise description of what you're trying to do and what isn't working for you_
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.3
2.2.4
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<p align="center">
<img src="https://nginxproxymanager.com/github.png">
<br><br>
<img src="https://img.shields.io/badge/version-2.2.3-green.svg?style=for-the-badge">
<img src="https://img.shields.io/badge/version-2.2.4-green.svg?style=for-the-badge">
<a href="https://hub.docker.com/repository/docker/jc21/nginx-proxy-manager">
<img src="https://img.shields.io/docker/stars/jc21/nginx-proxy-manager.svg?style=for-the-badge">
</a>
Expand Down
6 changes: 3 additions & 3 deletions backend/internal/access-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const internalAccessList = {
.omit(omissions())
.insertAndFetch({
name: data.name,
satify_any: data.satify_any,
satisfy_any: data.satisfy_any,
owner_user_id: access.token.getUserId(1)
});
})
Expand Down Expand Up @@ -126,8 +126,8 @@ const internalAccessList = {
.query()
.where({id: data.id})
.patch({
name: data.name,
satify_any: data.satify_any,
name: data.name,
satisfy_any: data.satisfy_any,
});
}
})
Expand Down
3 changes: 3 additions & 0 deletions backend/internal/nginx.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,16 @@ const internalNginx = {
return new Promise((resolve, reject) => {
let template = null;
let filename = '/data/nginx/temp/letsencrypt_' + certificate.id + '.conf';

try {
template = fs.readFileSync(__dirname + '/../templates/letsencrypt-request.conf', {encoding: 'utf8'});
} catch (err) {
reject(new error.ConfigurationError(err.message));
return;
}

certificate.ipv6 = internalNginx.ipv6Enabled();

renderEngine
.parseAndRender(template, certificate)
.then((config_text) => {
Expand Down
34 changes: 34 additions & 0 deletions backend/migrations/20200410143840_access_list_client_fix.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const migrate_name = 'access_list_client_fix';
const logger = require('../logger').migrate;

/**
* Migrate
*
* @see http://knexjs.org/#Schema
*
* @param {Object} knex
* @param {Promise} Promise
* @returns {Promise}
*/
exports.up = function (knex/*, Promise*/) {
logger.info('[' + migrate_name + '] Migrating Up...');

return knex.schema.table('access_list', function (access_list) {
access_list.renameColumn('satify_any', 'satisfy_any');
})
.then(() => {
logger.info('[' + migrate_name + '] access_list Table altered');
});
};

/**
* Undo Migrate
*
* @param {Object} knex
* @param {Promise} Promise
* @returns {Promise}
*/
exports.down = function (knex, Promise) {
logger.warn('[' + migrate_name + '] You can\'t migrate down this one.');
return Promise.resolve(true);
};
2 changes: 1 addition & 1 deletion backend/models/access_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class AccessList extends Model {
}

get satisfy() {
return this.satify_any ? 'satisfy any' : 'satisfy all';
return this.satisfy_any ? 'satisfy any' : 'satisfy all';
}
}

Expand Down

0 comments on commit 7084473

Please sign in to comment.