You've already forked nginx-proxy-manager
							
							
				mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-11-04 04:11:42 +03:00 
			
		
		
		
	You can now configure the forward_scheme and forward_http_code on user interface (section redirection hosts)
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			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
 | 
						|
    })
 | 
						|
};
 |