134 lines
3.0 KiB
JSON
134 lines
3.0 KiB
JSON
|
{
|
||
|
"id": "nginx",
|
||
|
"name": "Nginx Web Server",
|
||
|
"description": "High-performance HTTP server and reverse proxy",
|
||
|
"category": "web-server",
|
||
|
"tags": ["web", "proxy", "http", "server"],
|
||
|
"icon": "https://nginx.org/favicon.ico",
|
||
|
"author": "Nginx Inc.",
|
||
|
"website": "https://nginx.org",
|
||
|
"repository": "https://github.com/nginx/nginx",
|
||
|
"license": "BSD-2-Clause",
|
||
|
"version": "1.24.0",
|
||
|
"deployment_type": "both",
|
||
|
"config": {
|
||
|
"schema": {
|
||
|
"port": {
|
||
|
"type": "int",
|
||
|
"description": "Port number for the web server",
|
||
|
"required": true,
|
||
|
"min": 1,
|
||
|
"max": 65535,
|
||
|
"placeholder": "Enter port number"
|
||
|
},
|
||
|
"server_name": {
|
||
|
"type": "string",
|
||
|
"description": "Server name for virtual host",
|
||
|
"required": false,
|
||
|
"pattern": "^[a-zA-Z0-9.-]+$",
|
||
|
"placeholder": "Enter server name"
|
||
|
},
|
||
|
"ssl_enabled": {
|
||
|
"type": "bool",
|
||
|
"description": "Enable SSL/TLS support",
|
||
|
"required": false,
|
||
|
"help": "Enable HTTPS support"
|
||
|
},
|
||
|
"log_level": {
|
||
|
"type": "select",
|
||
|
"description": "Logging level",
|
||
|
"required": false,
|
||
|
"options": ["debug", "info", "warn", "error"]
|
||
|
}
|
||
|
},
|
||
|
"default": {
|
||
|
"port": 80,
|
||
|
"server_name": "localhost",
|
||
|
"ssl_enabled": false,
|
||
|
"log_level": "info"
|
||
|
}
|
||
|
},
|
||
|
"requirements": {
|
||
|
"min_memory": "128MB",
|
||
|
"min_cpu": "1 core",
|
||
|
"min_storage": "100MB",
|
||
|
"os": "linux",
|
||
|
"arch": "x86_64"
|
||
|
},
|
||
|
"deploy": {
|
||
|
"type": "docker",
|
||
|
"docker": {
|
||
|
"image": "nginx",
|
||
|
"tag": "1.24.0",
|
||
|
"ports": [
|
||
|
{
|
||
|
"host_port": 80,
|
||
|
"container_port": 80,
|
||
|
"protocol": "tcp",
|
||
|
"name": "http"
|
||
|
},
|
||
|
{
|
||
|
"host_port": 443,
|
||
|
"container_port": 443,
|
||
|
"protocol": "tcp",
|
||
|
"name": "https"
|
||
|
}
|
||
|
],
|
||
|
"volumes": [
|
||
|
{
|
||
|
"host_path": "/var/log/nginx",
|
||
|
"container_path": "/var/log/nginx",
|
||
|
"type": "bind"
|
||
|
},
|
||
|
{
|
||
|
"host_path": "/etc/nginx/conf.d",
|
||
|
"container_path": "/etc/nginx/conf.d",
|
||
|
"type": "bind"
|
||
|
}
|
||
|
],
|
||
|
"environment": {
|
||
|
"NGINX_VERSION": "1.24.0"
|
||
|
},
|
||
|
"resources": {
|
||
|
"cpu": "500m",
|
||
|
"memory": "512Mi"
|
||
|
}
|
||
|
},
|
||
|
"kubernetes": {
|
||
|
"namespace": "web-servers",
|
||
|
"replicas": 2,
|
||
|
"image": "nginx",
|
||
|
"tag": "1.24.0",
|
||
|
"ports": [
|
||
|
{
|
||
|
"container_port": 80,
|
||
|
"protocol": "tcp",
|
||
|
"name": "http"
|
||
|
}
|
||
|
],
|
||
|
"volumes": [
|
||
|
{
|
||
|
"container_path": "/var/log/nginx",
|
||
|
"type": "emptyDir"
|
||
|
}
|
||
|
],
|
||
|
"environment": {
|
||
|
"NGINX_VERSION": "1.24.0"
|
||
|
},
|
||
|
"resources": {
|
||
|
"cpu": "500m",
|
||
|
"memory": "512Mi"
|
||
|
},
|
||
|
"service": {
|
||
|
"type": "ClusterIP",
|
||
|
"ports": [
|
||
|
{
|
||
|
"container_port": 80,
|
||
|
"protocol": "tcp",
|
||
|
"name": "http"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|