nginx
How nginx is configured and managed for openhands-remote
- License 许可
- MIT
- 所属仓库
- rbren/dotfiles
- 最近更新
- 2026-05-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- nginx
- license
- MIT
- description
- How nginx is configured and managed for openhands-remote
02 资源文件 1
- 参考文档references/details.md2.4 KB
03 SKILL.md 正文
The nginx config lives in the repo at /root/git/openhands-remote/nginx.conf. It is NOT copied to /etc/nginx/ — nginx is started directly with -c pointing at the repo file.
Commands
Test config for errors:
nginx -c /root/git/openhands-remote/nginx.conf -t
Start nginx (if not running):
nginx -c /root/git/openhands-remote/nginx.conf
Reload after config changes (no downtime):
nginx -c /root/git/openhands-remote/nginx.conf -s reload
Workflow for config changes
- Edit
/root/git/openhands-remote/nginx.conf - Test:
nginx -c /root/git/openhands-remote/nginx.conf -t - Reload:
nginx -c /root/git/openhands-remote/nginx.conf -s reload
What the config does
- HTTP (port 80): redirects to HTTPS, except
/.well-known/acme-challenge/(used for Let's Encrypt cert renewal, webroot athomepage/) - HTTPS (port 443): SSL termination with certs at
/etc/letsencrypt/live/oh.rbren.io/ - Cookie-based auth via
auth_requestto auth backend on port 4100 (apps/auth/main.py); credentials validated against/etc/nginx/.htpasswd;/auth/and/apps/sms/api/bypass auth - Static routes (
/,/status,/assistant,/files, etc.) all servehomepage/index.html - Each app is reverse-proxied:
/apps/<name>/→ Vite frontend,/apps/<name>/api/→ FastAPI backend
Port assignments
| App | Frontend | Backend |
|---|---|---|
| status | 4001 | 4002 |
| assistant | 4003 | 4004 |
| files | 4005 | 4006 |
| projects | 4007 | 4008 |
| secrets | 4009 | 4010 |
| scheduled | 4011 | 4012 |
| terminal | 4013 | 4014 |
| skills | 4015 | 4016 |
| logs | 4017 | 4018 |
| sms | 4019 | 4020 |
| hud | 4021 | — |
| code-server | — | 4050 |
04 同仓库更多 Skills
this-environment
Complete guide to this DigitalOcean droplet running openhands-remote at oh.rbren.io — hardware, networking, apps, auth, DNS, and how to add new things
skill-creator
Guide for creating effective skills that extend agent capabilities with specialized knowledge, workflows, or tool integrations. Use when the user wants to create or update a skill.
rethink
When I tell you to rethink, use this skill
rbren-snippets
The #rbren-snippets Slack channel (ID: C0APBQYQTFV) is Robert's personal scratchpad for thoughts, observations, bug notes, and dev environment updates.
local-projects
local projects are stored in ~/git/
flargle
this tells you how to flargle