dhis2_fix_proxy_configuration
Generate and fix proxy configurations for local development against DHIS2 instances, supporting webpack, React, Vite, and custom setups. Authenticate and connect securely to target DHIS2 instances.
Instructions
Generate proxy configuration and fixes for local development against DHIS2 instances
Input Schema
Name | Required | Description | Default |
---|---|---|---|
authentication | No | ||
localPort | No | Local development port (default: 3000) | |
proxyType | Yes | Type of proxy configuration needed | |
sslOptions | No | ||
targetInstance | Yes | Target DHIS2 instance URL |
Input Schema (JSON Schema)
{
"properties": {
"authentication": {
"properties": {
"password": {
"description": "DHIS2 password for proxy authentication",
"type": "string"
},
"username": {
"description": "DHIS2 username for proxy authentication",
"type": "string"
}
},
"required": [
"username",
"password"
],
"type": "object"
},
"localPort": {
"description": "Local development port (default: 3000)",
"type": "number"
},
"proxyType": {
"description": "Type of proxy configuration needed",
"enum": [
"webpack_dev_server",
"create_react_app",
"vite",
"custom_express"
],
"type": "string"
},
"sslOptions": {
"properties": {
"changeOrigin": {
"description": "Change origin header",
"type": "boolean"
},
"secure": {
"description": "Verify SSL certificates",
"type": "boolean"
}
},
"type": "object"
},
"targetInstance": {
"description": "Target DHIS2 instance URL",
"type": "string"
}
},
"required": [
"proxyType",
"targetInstance"
],
"type": "object"
}