pan-network
Traefik, local domains, and platform-specific networking setup
от eltmon★ 36 звёзд на GitHub
Установить pan-network в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Networking & Traefik Setup
Overview
This skill guides you through setting up Traefik reverse proxy for local HTTPS, configuring local domains, and handling platform-specific networking (Linux, macOS, WSL2).
When to Use
- Setting up local HTTPS for development
- Configuring *.overdeck.localhost domains
- Troubleshooting network connectivity between containers
- Platform-specific DNS configuration
Architecture
Browser
↓
https://myapp.overdeck.localhost
↓
Traefik (port 443/80)
↓
Docker containers (internal ports)
Quick Start
1. Start Traefik
cd /path/to/overdeck/templates/traefik
docker compose up -d
2. Add DNS Entry
# Linux/macOS
echo "127.0.0.1 overdeck.localhost" | sudo tee -a /etc/hosts
echo "127.0.0.1 traefik.overdeck.localhost" | sudo tee -a /etc/hosts
echo "127.0.0.1 myapp.overdeck.localhost" | sudo tee -a /etc/hosts
# Or use wildcard (requires dnsmasq)
3. Verify
- Dashboard: https://overdeck.localhost
- Traefik UI: https://traefik.overdeck.localhost:8080
Platform-Specific Setup
Linux
DNS:
# Add to /etc/hosts
sudo tee -a /etc/hosts << 'EOF'
127.0.0.1 overdeck.localhost
127.0.0.1 traefik.overdeck.localhost
EOF
Wildcard DNS (optional):
# Install dnsmasq
sudo apt install dnsmasq
# Configure
echo "address=/overdeck.localhost/127.0.0.1" | sudo tee /etc/dnsmasq.d/overdeck.localhost.conf
# Restart
sudo systemctl restart dnsmasq
macOS
DNS:
# Add to /etc/hosts
sudo tee -a /etc/hosts << 'EOF'
127.0.0.1 overdeck.localhost
127.0.0.1 traefik.overdeck.localhost
EOF
Wildcard DNS (optional):
# Install dnsmasq
brew install dnsmasq
# Configure
echo "address=/overdeck.localhost/127.0.0.1" >> $(brew --prefix)/etc/dnsmasq.conf
# Start
sudo brew services start dnsmasq
# Point .localhost to dnsmasq
sudo mkdir -p /etc/resolver
echo "nameserver 127.0.0.1" | sudo tee /etc/resolver/localhost
WSL2
WSL2 has additional complexity because:
- WSL2 has a different IP than Windows
- Windows hosts file is separate from WSL2
Option A: Port Forwarding (Recommended)
# In PowerShell (Admin)
# Forward ports from Windows to WSL2
netsh interface portproxy add v4tov4 listenport=80 listenaddress=0.0.0.0 connectport=80 connectaddress=$(wsl hostname -I)
netsh interface portproxy add v4tov4 listenport=443 listenaddress=0.0.0.0 connectport=443 connectaddress=$(wsl hostname -I)
Then add to Windows hosts file (C:\Windows\System32\drivers\etc\hosts):
127.0.0.1 overdeck.localhost
127.0.0.1 traefik.overdeck.localhost
Option B: Use WSL2 IP Directly
# Get WSL2 IP
hostname -I
# Add to Windows hosts (replace with actual IP)
# 172.x.x.x overdeck.localhost
Note: WSL2 IP changes on restart.
Option C: Use localhost Tunneling
Install socat in WSL2:
sudo apt install socat
socat TCP-LISTEN:443,fork,reuseaddr TCP:$(hostname -I | awk '{print $1}'):443
Traefik Configuration
Directory Structure
templates/traefik/
├── docker-compose.yml
├── traefik.yml # Static config
├── dynamic/
│ ├── overdeck.yml # Overdeck dashboard routing
│ └── workspace.yml.template # Template for workspaces
└── certs/
├── _wildcard.overdeck.localhost.pem
└── _wildcard.overdeck.localhost-key.pem
Add a New Route
Create dynamic/myapp.yml:
http:
routers:
myapp:
rule: "Host(`myapp.overdeck.localhost`)"
service: myapp
tls: {}
services:
myapp:
loadBalancer:
servers:
- url: "http://host.docker.internal:3000"
Traefik auto-detects changes in the dynamic/ directory.
Docker Labels Method
In your docker-compose.yml:
services:
app:
labels:
- "traefik.enable=true"
- "traefik.http.routers.myapp.rule=Host(`myapp.overdeck.localhost`)"
- "traefik.http.routers.myapp.tls=true"
- "traefik.http.services.myapp.loadbalancer.server.port=3000"
networks:
- traefik
networks:
traefik:
external: true
name: traefik_default
Certificate Management
Using Provided Certs
Overdeck includes pre-generated wildcard certs for *.overdeck.localhost:
- Valid for development only
- Auto-trusted by most browsers for localhost
Generate New Certs with mkcert
# Install mkcert
brew install mkcert # macOS
# or
sudo apt install mkcert # Linux
# Install CA
mkcert -install
# Generate wildcard cert
cd templates/traefik/certs
mkcert "*.overdeck.localhost" overdeck.localhost localhost 127.0.0.1 ::1
Troubleshooting
"Connection Refused"
# Check Traefik is running
docker ps | grep traefik
# Check Traefik logs
docker logs traefik
# Verify DNS resolves
ping overdeck.localhost
"Certificate Error"
# Trust the CA (if using mkcert)
mkcert -install
# Or add exception in browser
"502 Bad Gateway"
# Check target service is running
docker
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read - 03
Write
FAQ
Что делает скилл pan-network?
Traefik, local domains, and platform-specific networking setup
Как установить скилл pan-network?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pan-network запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…