stages/nginx.conf: SCHEMA_2
This commit is contained in:
parent
c77767c788
commit
6636d390d6
1 changed files with 33 additions and 31 deletions
|
|
@ -9,37 +9,39 @@ import sys
|
|||
import osbuild.api
|
||||
from osbuild.util.path import in_tree
|
||||
|
||||
SCHEMA = r"""
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"path": {
|
||||
"type": "string",
|
||||
"description": "Config file location",
|
||||
"default": "/etc/nginx/nginx.conf",
|
||||
"pattern": "^\\/(?!\\.\\.)((?!\\/\\.\\.\\/).)+$"
|
||||
},
|
||||
"config": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"listen": {
|
||||
"type": "string",
|
||||
"description": "The address and/or port on which the server will accept requests",
|
||||
"default": "*:80"
|
||||
},
|
||||
"root": {
|
||||
"type": "string",
|
||||
"description": "The root directory for requests",
|
||||
"default": "/usr/share/nginx/html"
|
||||
},
|
||||
"pid": {
|
||||
"type": "string",
|
||||
"description": "File that will store the process ID of the main process",
|
||||
"default": "/run/nginx.pid"
|
||||
},
|
||||
"daemon": {
|
||||
"type": "boolean",
|
||||
"description": "Whether nginx should become a daemon",
|
||||
"default": true
|
||||
SCHEMA_2 = r"""
|
||||
"options": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"path": {
|
||||
"type": "string",
|
||||
"description": "Config file location",
|
||||
"default": "/etc/nginx/nginx.conf",
|
||||
"pattern": "^\\/(?!\\.\\.)((?!\\/\\.\\.\\/).)+$"
|
||||
},
|
||||
"config": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"listen": {
|
||||
"type": "string",
|
||||
"description": "The address and/or port on which the server will accept requests",
|
||||
"default": "*:80"
|
||||
},
|
||||
"root": {
|
||||
"type": "string",
|
||||
"description": "The root directory for requests",
|
||||
"default": "/usr/share/nginx/html"
|
||||
},
|
||||
"pid": {
|
||||
"type": "string",
|
||||
"description": "File that will store the process ID of the main process",
|
||||
"default": "/run/nginx.pid"
|
||||
},
|
||||
"daemon": {
|
||||
"type": "boolean",
|
||||
"description": "Whether nginx should become a daemon",
|
||||
"default": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue