You've already forked nginx-proxy-manager
							
							
				mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-30 18:05:34 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
		
			819 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			819 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const Backbone = require('backbone');
 | |
| 
 | |
| const model = Backbone.Model.extend({
 | |
|     idAttribute: 'id',
 | |
| 
 | |
|     defaults: function () {
 | |
|         return {
 | |
|             id:              undefined,
 | |
|             created_on:      null,
 | |
|             modified_on:     null,
 | |
|             incoming_port:   null,
 | |
|             forwarding_host: null,
 | |
|             forwarding_port: null,
 | |
|             tcp_forwarding:  true,
 | |
|             udp_forwarding:  false,
 | |
|             enabled:         true,
 | |
|             meta:            {},
 | |
|             certificate_id:  0,
 | |
|             domain_names:    [],
 | |
|             // The following are expansions:
 | |
|             owner:           null,
 | |
|             certificate:     null
 | |
|         };
 | |
|     }
 | |
| });
 | |
| 
 | |
| module.exports = {
 | |
|     Model:      model,
 | |
|     Collection: Backbone.Collection.extend({
 | |
|         model: model
 | |
|     })
 | |
| };
 |