feat: add VPS baseline provisioning assets#139
Conversation
1de5559 to
9a2da6e
Compare
There was a problem hiding this comment.
Pull request overview
Adds baseline VPS provisioning assets under infra/ to support Linode server setup (bootstrap + swap + cert issuance scripts), initial Nginx vhost configs, documentation for the setup flow, and extends the infra validation tests to cover these new assets.
Changes:
- Added VPS baseline shell scripts (bootstrap, swap setup, cert issuance) and Nginx site configs for
api,station, andbot. - Documented the VPS baseline setup flow in
infra/README.md. - Extended
infratests to validate script syntax, presence of expected steps, Nginx upstreams, and script executability.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| infra/tests/infrastructure.test.mjs | Adds infra validations for new scripts and Nginx configs (syntax + content assertions). |
| infra/scripts/setup-swap.sh | Introduces a swap provisioning script for the VPS baseline. |
| infra/scripts/issue-certs.sh | Adds a one-shot cert issuance + renewal verification script using Certbot. |
| infra/scripts/bootstrap-vps.sh | Adds a bootstrap script to install Docker/Nginx/Certbot, create deploy user, and call swap setup. |
| infra/nginx/station.drdnt.org.conf | Adds HTTP vhost config for Station reverse proxy. |
| infra/nginx/bot.drdnt.org.conf | Adds HTTP vhost config for bot subdomain (placeholder upstream). |
| infra/nginx/api.drdnt.org.conf | Adds HTTP vhost config for API reverse proxy to backend. |
| infra/README.md | Documents the VPS baseline workflow and what each script/config provides. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- add bootstrap, swap, and certificate scripts for the Linode VPS - add nginx configs for api, station, and bot subdomains - document the baseline VPS setup flow under infra
- add an infra workspace package with node-based tests - validate VPS bootstrap scripts and nginx configs through pnpm test
9a2da6e to
4959b98
Compare
b58a6e1 to
fec23d3
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
Testing
Depends on #106
Closes #107