add option
This commit is contained in:
134
services/appstore/examples/mengningsoftware.json
Normal file
134
services/appstore/examples/mengningsoftware.json
Normal file
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"id": "mnsoftware",
|
||||
"name": "Mengningsoftware",
|
||||
"description": "High-performance HTTP server and reverse proxy",
|
||||
"category": "web-server",
|
||||
"tags": ["web", "proxy", "http", "server"],
|
||||
"icon": "https://www.mengning.com.cn/assets/images/mengninglogo.png",
|
||||
"author": "Mengningsoftware Inc",
|
||||
"website": "https://www.mengning.com.cn/",
|
||||
"repository": "https://devstar.cn/lat5211/devstar_introduction.git",
|
||||
"license": "BSD-2-Clause",
|
||||
"version": "1.0.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": "crpi-pqfsp88s5zx2zwfq.cn-hangzhou.personal.cr.aliyuncs.com/devstar/devstar_introduction",
|
||||
"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": "crpi-pqfsp88s5zx2zwfq.cn-hangzhou.personal.cr.aliyuncs.com/devstar/devstar_introduction",
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user