Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ jobs:
(github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'staging')
environment:
name: staging
url: https://dev.codeframeapp.com
# dev.codeframeapp.com has DNS to this box but no nginx site and no
# certificate, so the shared VPS serves another project's cert and TLS
# fails. The GitHub deployment link therefore looked like staging was
# down when it was serving fine. dev.codeframe.sh is the real host.
url: https://dev.codeframe.sh

steps:
- name: Checkout code
Expand Down
6 changes: 6 additions & 0 deletions deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ ever travel over HTTPS/WSS between the browser and Caddy. Plaintext
sudo systemctl reload caddy
```
Caddy provisions and renews the Let's Encrypt certificate automatically.
> **Staging lives at <https://dev.codeframe.sh>.** It runs behind nginx on a
> shared VPS (`/etc/nginx/sites-available/dev.codeframe.sh.conf`), with the
> backend on 14200 and the frontend on 14100 under pm2. `dev.codeframeapp.com`
> is an older domain that was never finished — it resolves to the same box but
> has no site block and no certificate.

3. Set the public origins in `.env.staging` / `.env.production`:
```
NEXT_PUBLIC_API_URL=https://your-domain
Expand Down
7 changes: 7 additions & 0 deletions legacydocs/nginx-setup-complete.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
> **SUPERSEDED — do not follow.** This documents `dev.codeframeapp.com` on
> `47.88.89.175`. Both are dead: the box was rebuilt at `195.35.14.177` on
> 2026-07-01 and staging is now **<https://dev.codeframe.sh>**, configured at
> `/etc/nginx/sites-available/dev.codeframe.sh.conf`. `dev.codeframeapp.com`
> still resolves to the new box but has no site block and no certificate, so it
> fails TLS. Kept for history only; see `deploy/README.md`.

# Nginx & SSL Configuration Complete

**Date**: 2025-10-25
Expand Down