Guides · VPS
Website · domain · HTTPS
Caddy → domain A record → automatic HTTPS.
1. Install Caddy
- Choose Web server (Caddy) when ordering or reinstalling to install and start it on first boot (Ubuntu · Debian).
- Path:
/root/apps/web(Desktop folder on desktop editions). Install log:/var/log/sjnode-apps.log. - Manual installation: Caddy installation docs.
Open http://PUBLIC_IP → look for "웹 서버 작동 중" (web server running).
2. Upload your files
- Site directory:
/root/apps/web/site(home page =index.html). - Upload with WinSCP or FileZilla over SFTP (host = public IP · port 22 ·
root). - File changes take effect immediately.
3. Connect a domain
Add A records in your domain's DNS:
| Name | Type | Value |
|---|---|---|
@ (example.com) | A | Public IP |
www | A | Public IP |
For Cloudflare, start with the gray cloud (DNS only). Propagation takes minutes to hours.
4. Free HTTPS (automatic)
nano /root/apps/web/Caddyfile- Replace the leading
:80with your domain:example.com, www.example.com { root * site file_server } systemctl restart webhttps://example.com— Caddy obtains and renews the certificate automatically.
- Ports 80 · 443 must be open (open by default, Firewall).
- Check errors with
journalctl -u web -n 50. Often DNS does not point to the public IP yet.
5. Reverse proxy (Node.js · Python)
If your app listens on port 3000:
example.com {
reverse_proxy 127.0.0.1:3000
}
Save → systemctl restart web. Keep the app running: systemd.
6. Manage
| Action | Command |
|---|---|
| Status | systemctl status web |
| Restart | systemctl restart web |
| Logs | journalctl -u web -f |
| Disable automatic startup | cd /root/apps/web && ./start.sh --remove-service |