mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 07:43:33 +00:00 
			
		
		
		
	dns_servercow
This commit is contained in:
		| @@ -60,6 +60,7 @@ func List() []Provider { | |||||||
| 		getDNSLua(), | 		getDNSLua(), | ||||||
| 		getDNSMe(), | 		getDNSMe(), | ||||||
| 		getDNSNamecom(), | 		getDNSNamecom(), | ||||||
|  | 		getDNSServercow(), | ||||||
| 		getDNSOne(), | 		getDNSOne(), | ||||||
| 		getDNSPDNS(), | 		getDNSPDNS(), | ||||||
| 		getDNSUnoeuro(), | 		getDNSUnoeuro(), | ||||||
|   | |||||||
							
								
								
									
										46
									
								
								backend/internal/dnsproviders/dns_servercow.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								backend/internal/dnsproviders/dns_servercow.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,46 @@ | |||||||
|  | package dnsproviders | ||||||
|  |  | ||||||
|  | const servercowSchema = ` | ||||||
|  | { | ||||||
|  | 	"type": "object", | ||||||
|  | 	"required": [ | ||||||
|  | 		"user", | ||||||
|  | 		"password" | ||||||
|  | 	], | ||||||
|  | 	"additionalProperties": false, | ||||||
|  | 	"properties": { | ||||||
|  | 		"user": { | ||||||
|  | 			"type": "string", | ||||||
|  | 			"minLength": 1 | ||||||
|  | 		}, | ||||||
|  | 		"password": { | ||||||
|  | 			"type": "string", | ||||||
|  | 			"minLength": 1 | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | ` | ||||||
|  |  | ||||||
|  | func getDNSServercow() Provider { | ||||||
|  | 	return Provider{ | ||||||
|  | 		AcmeshName: "dns_servercow", | ||||||
|  | 		Schema:     servercowSchema, | ||||||
|  | 		Fields: []providerField{ | ||||||
|  | 			{ | ||||||
|  | 				Name:       "User", | ||||||
|  | 				Type:       "text", | ||||||
|  | 				MetaKey:    "user", | ||||||
|  | 				EnvKey:     "SERVERCOW_API_Username", | ||||||
|  | 				IsRequired: true, | ||||||
|  | 			}, | ||||||
|  | 			{ | ||||||
|  | 				Name:       "Password", | ||||||
|  | 				Type:       "password", | ||||||
|  | 				MetaKey:    "password", | ||||||
|  | 				EnvKey:     "SERVERCOW_API_Password", | ||||||
|  | 				IsRequired: true, | ||||||
|  | 				IsSecret:   true, | ||||||
|  | 			}, | ||||||
|  | 		}, | ||||||
|  | 	} | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user