feat(mosaic-portainer): add PORTAINER_INSECURE flag for self-signed TLS
Self-signed Portainer instances (e.g. internal LAN at 10.1.1.43:9443) caused all wrapper calls to fail silently with HTTP 000. Setting PORTAINER_INSECURE=1 passes -k to curl, bypassing certificate verification and unblocking API calls to such instances. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,14 @@ export PORTAINER_URL="https://portainer.example.com:9443"
|
||||
export PORTAINER_API_KEY="your-api-key-here"
|
||||
```
|
||||
|
||||
If your Portainer instance uses a self-signed TLS certificate (e.g. internal LAN), set:
|
||||
|
||||
```bash
|
||||
export PORTAINER_INSECURE=1
|
||||
```
|
||||
|
||||
This passes `-k` to all curl calls, bypassing certificate verification. Do not set this against public/production instances.
|
||||
|
||||
You can add these to your shell profile (`~/.bashrc`, `~/.zshrc`) or use a `.env` file.
|
||||
|
||||
### Creating an API Key
|
||||
|
||||
Reference in New Issue
Block a user