Files
.github
backend
docker
docs
frontend
app-images
html
js
app
i18n
lib
login
models
access-list.js
audit-log.js
certificate.js
dead-host.js
proxy-host-location.js
proxy-host.js
redirection-host.js
setting.js
stream.js
user.js
index.js
login.js
scss
.babelrc
.gitignore
package.json
webpack.config.js
yarn.lock
global
scripts
test
.gitignore
.version
Jenkinsfile
LICENSE
README.md
nginx-proxy-manager/frontend/js/models/redirection-host.js
baruffaldi 6df7b72e08 Forward scheme and http code added for redirection hosts
You can now configure the forward_scheme and forward_http_code on user interface (section redirection hosts)
2021-02-09 11:23:15 +01:00

38 lines
1.0 KiB
JavaScript

const Backbone = require('backbone');
const model = Backbone.Model.extend({
idAttribute: 'id',
defaults: function () {
return {
id: undefined,
created_on: null,
modified_on: null,
domain_names: [],
forward_http_code: 0,
forward_scheme: null,
forward_domain_name: '',
preserve_path: true,
certificate_id: 0,
ssl_forced: false,
hsts_enabled: false,
hsts_subdomains: false,
block_exploits: false,
http2_support: false,
advanced_config: '',
enabled: true,
meta: {},
// The following are expansions:
owner: null,
certificate: null
};
}
});
module.exports = {
Model: model,
Collection: Backbone.Collection.extend({
model: model
})
};