proxy-host.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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_scheme: 'http',
  11. forward_host: '',
  12. forward_port: null,
  13. access_list_id: 0,
  14. certificate_id: 0,
  15. ssl_forced: false,
  16. hsts_enabled: false,
  17. hsts_subdomains: false,
  18. caching_enabled: false,
  19. allow_websocket_upgrade: false,
  20. block_exploits: false,
  21. http2_support: false,
  22. advanced_config: '',
  23. enabled: true,
  24. meta: {},
  25. // The following are expansions:
  26. owner: null,
  27. access_list: null,
  28. certificate: null
  29. };
  30. }
  31. });
  32. module.exports = {
  33. Model: model,
  34. Collection: Backbone.Collection.extend({
  35. model: model
  36. })
  37. };