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 
			
		
		
		
	- Renamed host templates to nginx templates - Generate upstream templates - Better nginx error reporting when reloading - Use tparse for golang test reporting
		
			
				
	
	
		
			23 lines
		
	
	
		
			374 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			374 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package schema
 | |
| 
 | |
| // UpdateHostTemplate is the schema for incoming data validation
 | |
| func UpdateNginxTemplate() string {
 | |
| 	return `
 | |
| 		{
 | |
| 			"type": "object",
 | |
| 			"additionalProperties": false,
 | |
| 			"minProperties": 1,
 | |
| 			"properties": {
 | |
| 				"name": {
 | |
| 					"type": "string",
 | |
| 					"minLength": 1
 | |
| 				},
 | |
| 				"template": {
 | |
| 					"type": "string",
 | |
| 					"minLength": 20
 | |
| 				}
 | |
| 			}
 | |
| 		}
 | |
| 	`
 | |
| }
 |