13 · Domains & git plan
DNS you added, what this server will serve, and how we stop flying without a net.
Domain map
flowchart LR
subgraph DNS["gopastearth.com DNS A → 104.207.140.143"]
S[staging]
D[dochub]
G[gperep]
end
S --> APP[Business OS app]
D --> HUB[This DocHub + /oao]
G --> REPO[Git hosting TBD]
| Host | Purpose | Status |
|---|---|---|
staging.gopastearth.com | Live product | live SSL |
dochub.gopastearth.com | Hierarchy / flowchart docs | live SSL |
gperep.gopastearth.com | Gitea git host | live SSL · Gitea 1.22 |
Gitea is live
https://gperep.gopastearth.com
Gitea 1.22.6 · SQLite · bound to
127.0.0.1:3001 · Nginx TLS · systemd unit gitea.
Data lives under /var/lib/gitea (separate from the live app tree).
Public registration is disabled. Admin user: gpeadmin
(password in /root/gitea-admin-credentials.txt on this server — change after first login).
| Item | Value |
|---|---|
| Service | systemctl status gitea |
| Config | /etc/gitea/app.ini |
| Repos | /var/lib/gitea/data/gitea-repositories |
| Memory cap | 400M (systemd) |
| SSH git | Disabled for now (HTTPS clone only) |
First repo import (safe order)
Do not
git init inside /home/pawspos/app with node_modules still tracked.
Create an empty private repo in Gitea UI, then push a cleaned tree.
- Log in → New Repository → name
gopastearth· private · default branchmain. - On the server, stage a clean export (example):
- Copy selected dirs to
/tmp/gpe-export/with a strong.gitignore - Or use
rsync --exclude node_modules …
- Copy selected dirs to
- Include:
backend/(no node_modules),frontend/src+package files,public-sitesources,bridge/,bridge-win-csharp/,infrastructure/(no secrets),documentation/, root README / ForGrok.md - Never commit:
.env, SQL dumps,node_modules, Cloud SDK, certs, media blobs, passwords in PM2 configs git init && git add && git commit && git remote add origin https://gperep…/gpeadmin/gopastearth.git && git push -u origin main- Workflow: branch → change → PR in Gitea → merge → deploy →
pm2 restart
Example ignore list: gpe-repo-gitignore.example
DocHub path on disk
/home/pawspos/app/documentation/dochub/ · OAO also exposed at /oao/ on the dochub vhost.