ops_reverse_proxy
Skill17 starsChanged 4 months agoMITView on GitHub
Public deploy via Traefik/Nginx/frp on a VPS — inspect first; reverse proxy is **HTTP-only** by default (no TLS on the edge)
In this repository12 other files it gives its agents.
- app_controlSkill
- aws_opsSkill
- code_executionSkill
- desktop_automationSkill
- docker_deploySkill
- file_operationsSkill
- gitlab_apiSkill
- gitlab_pages_ciSkill
- ops_dns_regruSkill
- ops_tmux_remote_deploySkill
- system_infoSkill
- vps_host_sshSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Treat the edge (Traefik / Nginx / frp) as plain HTTP (port 80 or frp equivalent).
- Very specific: line 19
Before writing a new docker-compose.yml, Traefik labels, or an Nginx server {}, understand what already runs on the target server and how …
- Very specific: line 34
Check entrypoints: if everything is web / :80, new services stay HTTP-only.
- Very specific: line 56
Traefik + TLS: only if neighbors already use websecure and the same tls.certresolver — copy those names.
- Distinctive: line 66
Remove neighbor sites or shared Traefik without explicit user approval.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Operator stack today: HTTP-only on the reverse proxy
Treat the edge (Traefik / Nginx / frp) as plain HTTP (port 80 or frp equivalent). Do not add TLS, websecure, tls=true, certresolver, or require Let’s Encrypt until existing projects on the same VPS clearly terminate HTTPS or the user explicitly asks for HTTPS.
Post-deploy check: curl -sS -I http://<host>/ (and Host: if needed), not https:// by default.
Inspect first, then copy the pattern
Before writing a new docker-compose.yml, Traefik labels, or an Nginx server {}, understand what already runs on the target server and how other projects are wired. Otherwise you get a second incompatible stack (wrong Docker network, wrong entrypoint).
Remote VPS work uses vps_host_ssh:
ssh -F /data/.ssh/config vps 'COMMAND'(If the bot runs without Docker but with HOST SHELL, the same SSH from the configured host is fine.)
Step 1 — what serves traffic (HTTP first)
- Containers:
docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Ports}}' - Traefik: names like
traefik,proxy, imagetraefik:*. If present, sample labels from a routed service:docker inspect SERVICE_NAME --format '{{json .Config.Labels}}' | head -c 12000- Check entrypoints: if everything is
web/:80, new services stay HTTP-only. If you seewebsecure+tls.certresolver, copy TLS like the neighbors.
- Host Nginx:
test -d /etc/nginx/sites-enabled && ls -1 /etc/nginx/sites-enabled || trueand optionallygrep -R listen /etc/nginx/sites-enabled/ 2>/dev/null | head -30— if onlylisten 80, do not addlisten 443 sslwithout a user request and certs. - frp:
pgrep -a frpc || true; common paths~/frp/frpc.toml,/etc/frp/frpc.toml,/opt/frp/frpc.toml— read-only. For HTTP prefertype = httpandcustomDomains; do not switch tohttpswithout a clear need.
Step 2 — where other compose projects live
Avoid aggressive find /:
ssh -F /data/.ssh/config vps 'for d in /opt /srv /var/www /root /home/*/apps; do test -d "$d" && ls -la "$d" 2>/dev/null; done'
ssh -F /data/.ssh/config vps 'ls -d /opt/*/docker-compose.yml /srv/*/docker-compose.yml 2>/dev/null | head -20'Open one closest neighbor and note:
- External Docker network name (
traefik_public,web,proxy, …); - Traefik: label prefix, entrypoints (HTTP vs HTTPS), certresolver if any;
- Nginx:
server_name,listen,proxy_pass/ upstream.
Step 3 — new service “like theirs”
- Traefik HTTP (default): same network as neighbors. Labels:
enable=true,rule=Host(\sub.example.ru`),entrypoints=web(or whatever neighbors use on :80). **No**tls=true` if neighbors on that entrypoint have no TLS. - Traefik + TLS: only if neighbors already use
websecureand the sametls.certresolver— copy those names. - Nginx HTTP: new
server { listen 80; server_name ...; location / { proxy_pass ... } }like the neighbor. Certbot /listen 443only on explicit user request or if the whole host is already HTTPS. - frp: same
typeand domain pattern as existing proxies; DNS (A) to frps if that is how neighbors work.
Step 4 — DNS alignment
REG.RU subdomain — skill ops_dns_regru. A record points at the machine that actually receives HTTP (VPS or frps).
Do not
- Remove neighbor sites or shared Traefik without explicit user approval.
- Paste secret file contents or full neighbor configs in chat — only facts (network names, entrypoints, paths).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

