dead-host.js 820 B

1234567891011121314151617181920212223242526272829303132
  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. certificate_id: 0,
  11. ssl_forced: false,
  12. http2_support: false,
  13. hsts_enabled: false,
  14. hsts_subdomains: false,
  15. enabled: true,
  16. meta: {},
  17. advanced_config: '',
  18. // The following are expansions:
  19. owner: null,
  20. certificate: null
  21. };
  22. }
  23. });
  24. module.exports = {
  25. Model: model,
  26. Collection: Backbone.Collection.extend({
  27. model: model
  28. })
  29. };