You've already forked nginx-proxy-manager
mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-01 17:26:53 +03:00
.github
backend
cmd
embed
internal
acme
api
context
filters
handler
http
middleware
schema
certificates.go
common.go
create_certificate_authority.go
create_dns_provider.go
create_host.go
create_nginx_template.go
create_setting.go
create_stream.go
create_upstream.go
create_user.go
get_token.go
set_auth.go
update_certificate_authority.go
update_dns_provider.go
update_host.go
update_nginx_template.go
update_setting.go
update_stream.go
update_upstream.go
update_user.go
router.go
router_test.go
server.go
cache
config
database
dnsproviders
entity
errors
jobqueue
jwt
logger
model
nginx
status
types
util
validator
scripts
.editorconfig
.golangci.yml
.nancy-ignore
README.md
Taskfile.yml
go.mod
go.sum
docker
docs
frontend
scripts
test
.dockerignore
.gitignore
.version
DEV-README.md
Jenkinsfile
LICENSE
README.md
22 lines
345 B
Go
22 lines
345 B
Go
package schema
|
|
|
|
import "fmt"
|
|
|
|
// CreateSetting is the schema for incoming data validation
|
|
func CreateSetting() string {
|
|
return fmt.Sprintf(`
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"name": %s,
|
|
"value": %s
|
|
}
|
|
}
|
|
`, stringMinMax(2, 100), anyType)
|
|
}
|