-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4344 from NginxProxyManager/stream-ssl
SSL for Streams - 2025
- Loading branch information
Showing
26 changed files
with
818 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
const migrate_name = 'stream_ssl'; | ||
const logger = require('../logger').migrate; | ||
|
||
/** | ||
* Migrate | ||
* | ||
* @see http://knexjs.org/#Schema | ||
* | ||
* @param {Object} knex | ||
* @returns {Promise} | ||
*/ | ||
exports.up = function (knex) { | ||
logger.info('[' + migrate_name + '] Migrating Up...'); | ||
|
||
return knex.schema.table('stream', (table) => { | ||
table.integer('certificate_id').notNull().unsigned().defaultTo(0); | ||
}) | ||
.then(function () { | ||
logger.info('[' + migrate_name + '] stream Table altered'); | ||
}); | ||
}; | ||
|
||
/** | ||
* Undo Migrate | ||
* | ||
* @param {Object} knex | ||
* @returns {Promise} | ||
*/ | ||
exports.down = function (knex) { | ||
logger.info('[' + migrate_name + '] Migrating Down...'); | ||
|
||
return knex.schema.table('stream', (table) => { | ||
table.dropColumn('certificate_id'); | ||
}) | ||
.then(function () { | ||
logger.info('[' + migrate_name + '] stream Table altered'); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.