mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-11-04 01:15:14 +00:00 
			
		
		
		
	- Added upstream objects
- Renamed host templates to nginx templates - Generate upstream templates - Better nginx error reporting when reloading - Use tparse for golang test reporting
This commit is contained in:
		
							
								
								
									
										40
									
								
								backend/embed/api_docs/components/NginxTemplateList.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								backend/embed/api_docs/components/NginxTemplateList.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,40 @@
 | 
			
		||||
{
 | 
			
		||||
	"type": "object",
 | 
			
		||||
	"description": "NginxTemplateList",
 | 
			
		||||
	"additionalProperties": false,
 | 
			
		||||
	"required": ["total", "offset", "limit", "sort"],
 | 
			
		||||
	"properties": {
 | 
			
		||||
		"total": {
 | 
			
		||||
			"type": "integer",
 | 
			
		||||
			"description": "Total number of rows"
 | 
			
		||||
		},
 | 
			
		||||
		"offset": {
 | 
			
		||||
			"type": "integer",
 | 
			
		||||
			"description": "Pagination Offset"
 | 
			
		||||
		},
 | 
			
		||||
		"limit": {
 | 
			
		||||
			"type": "integer",
 | 
			
		||||
			"description": "Pagination Limit"
 | 
			
		||||
		},
 | 
			
		||||
		"sort": {
 | 
			
		||||
			"type": "array",
 | 
			
		||||
			"description": "Sorting",
 | 
			
		||||
			"items": {
 | 
			
		||||
				"$ref": "#/components/schemas/SortObject"
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
		"filter": {
 | 
			
		||||
			"type": "array",
 | 
			
		||||
			"description": "Filters",
 | 
			
		||||
			"items": {
 | 
			
		||||
				"$ref": "#/components/schemas/FilterObject"
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
		"items": {
 | 
			
		||||
			"type": "array",
 | 
			
		||||
			"items": {
 | 
			
		||||
				"$ref": "#/components/schemas/NginxTemplateObject"
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
	"type": "object",
 | 
			
		||||
	"description": "HostTemplateObject",
 | 
			
		||||
	"description": "NginxTemplateObject",
 | 
			
		||||
	"additionalProperties": false,
 | 
			
		||||
	"required": [
 | 
			
		||||
		"id",
 | 
			
		||||
@@ -8,7 +8,7 @@
 | 
			
		||||
		"modified_on",
 | 
			
		||||
		"user_id",
 | 
			
		||||
		"name",
 | 
			
		||||
		"host_type",
 | 
			
		||||
		"type",
 | 
			
		||||
		"template"
 | 
			
		||||
	],
 | 
			
		||||
	"properties": {
 | 
			
		||||
@@ -32,9 +32,9 @@
 | 
			
		||||
			"type": "string",
 | 
			
		||||
			"minLength": 1
 | 
			
		||||
		},
 | 
			
		||||
		"host_type": {
 | 
			
		||||
		"type": {
 | 
			
		||||
			"type": "string",
 | 
			
		||||
			"pattern": "^proxy|redirect|dead|stream$"
 | 
			
		||||
			"pattern": "^proxy|redirect|dead|stream|upstream$"
 | 
			
		||||
		},
 | 
			
		||||
		"template": {
 | 
			
		||||
			"type": "string",
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
	"type": "object",
 | 
			
		||||
	"description": "HostTemplateList",
 | 
			
		||||
	"description": "UpstreamList",
 | 
			
		||||
	"additionalProperties": false,
 | 
			
		||||
	"required": ["total", "offset", "limit", "sort"],
 | 
			
		||||
	"properties": {
 | 
			
		||||
@@ -33,7 +33,7 @@
 | 
			
		||||
		"items": {
 | 
			
		||||
			"type": "array",
 | 
			
		||||
			"items": {
 | 
			
		||||
				"$ref": "#/components/schemas/HostTemplateObject"
 | 
			
		||||
				"$ref": "#/components/schemas/UpstreamObject"
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
							
								
								
									
										133
									
								
								backend/embed/api_docs/components/UpstreamObject.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										133
									
								
								backend/embed/api_docs/components/UpstreamObject.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,133 @@
 | 
			
		||||
{
 | 
			
		||||
	"type": "object",
 | 
			
		||||
	"description": "UpstreamObject",
 | 
			
		||||
	"additionalProperties": false,
 | 
			
		||||
	"required": [
 | 
			
		||||
		"id",
 | 
			
		||||
		"created_on",
 | 
			
		||||
		"modified_on",
 | 
			
		||||
		"user_id",
 | 
			
		||||
		"name",
 | 
			
		||||
		"nginx_template_id",
 | 
			
		||||
		"ip_hash",
 | 
			
		||||
		"ntlm",
 | 
			
		||||
		"keepalive",
 | 
			
		||||
		"keepalive_requests",
 | 
			
		||||
		"keepalive_time",
 | 
			
		||||
		"keepalive_timeout",
 | 
			
		||||
		"advanced_config",
 | 
			
		||||
		"status",
 | 
			
		||||
		"error_message",
 | 
			
		||||
		"servers"
 | 
			
		||||
	],
 | 
			
		||||
	"properties": {
 | 
			
		||||
		"id": {
 | 
			
		||||
			"type": "integer",
 | 
			
		||||
			"minimum": 1
 | 
			
		||||
		},
 | 
			
		||||
		"created_on": {
 | 
			
		||||
			"type": "integer",
 | 
			
		||||
			"minimum": 1
 | 
			
		||||
		},
 | 
			
		||||
		"modified_on": {
 | 
			
		||||
			"type": "integer",
 | 
			
		||||
			"minimum": 1
 | 
			
		||||
		},
 | 
			
		||||
		"user_id": {
 | 
			
		||||
			"type": "integer",
 | 
			
		||||
			"minimum": 1
 | 
			
		||||
		},
 | 
			
		||||
		"name": {
 | 
			
		||||
			"type": "string",
 | 
			
		||||
			"minLength": 1,
 | 
			
		||||
			"maxLength": 100
 | 
			
		||||
		},
 | 
			
		||||
		"nginx_template_id": {
 | 
			
		||||
			"type": "integer",
 | 
			
		||||
			"minimum": 1
 | 
			
		||||
		},
 | 
			
		||||
		"ip_hash": {
 | 
			
		||||
			"type": "boolean"
 | 
			
		||||
		},
 | 
			
		||||
		"ntlm": {
 | 
			
		||||
			"type": "boolean"
 | 
			
		||||
		},
 | 
			
		||||
		"keepalive": {
 | 
			
		||||
			"type": "integer"
 | 
			
		||||
		},
 | 
			
		||||
		"keepalive_requests": {
 | 
			
		||||
			"type": "integer"
 | 
			
		||||
		},
 | 
			
		||||
		"keepalive_time": {
 | 
			
		||||
			"type": "string"
 | 
			
		||||
		},
 | 
			
		||||
		"keepalive_timeout": {
 | 
			
		||||
			"type": "string"
 | 
			
		||||
		},
 | 
			
		||||
		"advanced_config": {
 | 
			
		||||
			"type": "string"
 | 
			
		||||
		},
 | 
			
		||||
		"status": {
 | 
			
		||||
			"type": "string"
 | 
			
		||||
		},
 | 
			
		||||
		"error_message": {
 | 
			
		||||
			"type": "string"
 | 
			
		||||
		},
 | 
			
		||||
		"servers": {
 | 
			
		||||
			"type": "array",
 | 
			
		||||
			"items": {
 | 
			
		||||
				"type": "object",
 | 
			
		||||
				"additionalProperties": false,
 | 
			
		||||
				"required": [
 | 
			
		||||
					"id",
 | 
			
		||||
					"created_on",
 | 
			
		||||
					"modified_on",
 | 
			
		||||
					"upstream_id",
 | 
			
		||||
					"server",
 | 
			
		||||
					"weight",
 | 
			
		||||
					"max_conns",
 | 
			
		||||
					"max_fails",
 | 
			
		||||
					"fail_timeout",
 | 
			
		||||
					"backup"
 | 
			
		||||
				],
 | 
			
		||||
				"properties": {
 | 
			
		||||
					"id": {
 | 
			
		||||
						"type": "integer",
 | 
			
		||||
						"minimum": 1
 | 
			
		||||
					},
 | 
			
		||||
					"created_on": {
 | 
			
		||||
						"type": "integer",
 | 
			
		||||
						"minimum": 1
 | 
			
		||||
					},
 | 
			
		||||
					"modified_on": {
 | 
			
		||||
						"type": "integer",
 | 
			
		||||
						"minimum": 1
 | 
			
		||||
					},
 | 
			
		||||
					"upstream_id": {
 | 
			
		||||
						"type": "integer",
 | 
			
		||||
						"minimum": 1
 | 
			
		||||
					},
 | 
			
		||||
					"server": {
 | 
			
		||||
						"type": "string",
 | 
			
		||||
						"minLength": 2
 | 
			
		||||
					},
 | 
			
		||||
					"weight": {
 | 
			
		||||
						"type": "integer"
 | 
			
		||||
					},
 | 
			
		||||
					"max_conns": {
 | 
			
		||||
						"type": "integer"
 | 
			
		||||
					},
 | 
			
		||||
					"max_fails": {
 | 
			
		||||
						"type": "integer"
 | 
			
		||||
					},
 | 
			
		||||
					"fail_timeout": {
 | 
			
		||||
						"type": "integer"
 | 
			
		||||
					},
 | 
			
		||||
					"backup": {
 | 
			
		||||
						"type": "boolean"
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user