redirection-host.js 992 B

1234567891011121314151617181920212223242526272829303132333435
  1. const Backbone = require('backbone');
  2. const model = Backbone.Model.extend({
  3. idAttribute: 'id',
  4. defaults: function () {
  5. return {
  6. id: undefined,
  7. created_on: null,
  8. modified_on: null,
  9. domain_names: [],
  10. forward_domain_name: '',
  11. preserve_path: true,
  12. certificate_id: 0,
  13. ssl_forced: false,
  14. hsts_enabled: false,
  15. hsts_subdomains: false,
  16. block_exploits: false,
  17. http2_support: false,
  18. advanced_config: '',
  19. enabled: true,
  20. meta: {},
  21. // The following are expansions:
  22. owner: null,
  23. certificate: null
  24. };
  25. }
  26. });
  27. module.exports = {
  28. Model: model,
  29. Collection: Backbone.Collection.extend({
  30. model: model
  31. })
  32. };