Initial commit: homelab infrastructure wiki
- Full Obsidian vault content - Host configs (ice, grizzley, ubuntu, proxmox, truenas, panda, hyte) - Media stack documentation - Traefik HA setup - Automation scripts - Bachelor party planning
This commit is contained in:
50
homelab/raw/articles/opencode/docs/network.md
Normal file
50
homelab/raw/articles/opencode/docs/network.md
Normal file
@@ -0,0 +1,50 @@
|
||||
---
|
||||
type: agent-doc
|
||||
agent: OpenCode
|
||||
source: https://opencode.ai/docs/network/
|
||||
scraped: 2026-04-28T21:02:06.800678+00:00
|
||||
content_hash: da20ad5d
|
||||
---
|
||||
# Network
|
||||
|
||||
Configure proxies and custom certificates.
|
||||
|
||||
OpenCode supports standard proxy environment variables and custom certificates for enterprise network environments.
|
||||
|
||||
---
|
||||
|
||||
## Proxy
|
||||
|
||||
OpenCode respects standard proxy environment variables.
|
||||
|
||||
```
|
||||
# HTTPS proxy (recommended)export HTTPS_PROXY=https://proxy.example.com:8080
|
||||
# HTTP proxy (if HTTPS not available)export HTTP_PROXY=http://proxy.example.com:8080
|
||||
# Bypass proxy for local server (required)export NO_PROXY=localhost,127.0.0.1
|
||||
```
|
||||
|
||||
You can configure the serverâs port and hostname using CLI flags.
|
||||
|
||||
---
|
||||
|
||||
### Authenticate
|
||||
|
||||
If your proxy requires basic authentication, include credentials in the URL.
|
||||
|
||||
```
|
||||
export HTTPS_PROXY=http://username:password@proxy.example.com:8080
|
||||
```
|
||||
|
||||
For proxies requiring advanced authentication like NTLM or Kerberos, consider using an LLM Gateway that supports your authentication method.
|
||||
|
||||
---
|
||||
|
||||
## Custom certificates
|
||||
|
||||
If your enterprise uses custom CAs for HTTPS connections, configure OpenCode to trust them.
|
||||
|
||||
```
|
||||
export NODE_EXTRA_CA_CERTS=/path/to/ca-cert.pem
|
||||
```
|
||||
|
||||
This works for both proxy connections and direct API access.
|
||||
Reference in New Issue
Block a user