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 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			487 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			487 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package schema
 | |
| 
 | |
| import "fmt"
 | |
| 
 | |
| // UpdateCertificateAuthority is the schema for incoming data validation
 | |
| func UpdateCertificateAuthority() string {
 | |
| 	return fmt.Sprintf(`
 | |
| 		{
 | |
| 			"type": "object",
 | |
| 			"additionalProperties": false,
 | |
| 			"minProperties": 1,
 | |
| 			"properties": {
 | |
| 				"name": %s,
 | |
| 				"acmesh_server": %s,
 | |
| 				"max_domains": %s,
 | |
| 				"ca_bundle": %s,
 | |
| 				"is_wildcard_supported": %s
 | |
| 			}
 | |
| 		}
 | |
| 	`, stringMinMax(1, 100), stringMinMax(2, 255), intMinOne, stringMinMax(2, 255), boolean)
 | |
| }
 |