You've already forked nginx-proxy-manager
mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-11-02 16:53:15 +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_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
26 lines
431 B
Go
26 lines
431 B
Go
package schema
|
|
|
|
import "fmt"
|
|
|
|
// SetAuth is the schema for incoming data validation
|
|
func SetAuth() string {
|
|
return fmt.Sprintf(`
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type",
|
|
"secret"
|
|
],
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"pattern": "^password$"
|
|
},
|
|
"secret": %s,
|
|
"current_secret": %s
|
|
}
|
|
}
|
|
`, stringMinMax(8, 225), stringMinMax(8, 225))
|
|
}
|