A developer writing under the name Seolith has published the sixth chapter of an open build series for FoxyInvoice, an invoicing product, describing the accounts and infrastructure needed to move code from a laptop to a public URL. The post, published on dev.to, is written as a step-by-step shopping list rather than a tutorial on application code, and the author states the series is drawn from a real production system with chapters and diagrams kept in a public repository.

The chapter frames the work as the part of a project that is easy to skip and expensive to skip. The author estimates the setup takes roughly an afternoon and costs about the equivalent of two coffees per month, and stresses that the order of steps matters because several depend on earlier ones already existing.

The dependency chain the author lays out begins with the domain, which must be bought first because everything else attaches to it. Next comes a DNS host, for which the post names Cloudflare's free tier, followed by a single modest Linux VPS that the author says runs the entire system. Email sending is handled through Amazon SES over SMTP, object storage is S3-compatible and holds rendered invoice PDFs and feedback attachments, payments run through Stripe, and GitHub carries the code and CI/CD pipeline.

For each item the author promises what to click, what it costs and the trap the project hit. Two DNS record types do most of the work in this setup. An A record points the domain at the VPS IP address, and the author warns that for Caddy's automatic TLS to prove domain ownership, the certificate authority must reach the server directly, so the record has to stay grey-cloud, meaning DNS-only rather than proxied through Cloudflare. The post describes this as a single toggle that causes TLS to fail silently if set incorrectly. MX records handle inbound mail routing.

Included in the stack is Cloudflare's free Email Routing, which can apply rules like support@yourdomain forwarding to a real inbox. A failure in this repository is recounted by the author: routing rules were present, yet the destination address remained unverified, and for a day feedback notifications turned into a MAILER-DAEMON storm before the pattern was noticed by anyone. According to the stated lesson, what email infrastructure requires is a delivery test, not merely a saved configuration, and the author says probe mails are now sent by the project whenever routing changes.

The VPS runs everything as Docker Compose services: PostgreSQL, an API, a worker and Caddy, with the author noting the database, API and worker are provisioned per product. Two operational details are called out as having earned a place in the repository documentation. Compose projects act as namespaces, and the freemium stack runs with a project flag and a specific environment file; the author says forgetting the environment file once caused Compose to interpolate the other stack's database password into the container, which then crash-looped on authentication failure. The post summarises this as environment files being credentials wearing a hat. Data lives in named volumes, so tearing down and rebuilding the stack leaves the data in place.

Sitting ahead of the application, Caddy handles TLS termination, forwards API paths by container name to the API service, and delivers the compiled single-page app straight off disk. As the author points out, certificates obtained automatically through Let's Encrypt or ZeroSSL mean issuance and renewal require no cron jobs at all. An evening of the project's time went into the trap recounted here: since a single file, the Caddyfile, gets bind-mounted read-only into the container, any host-side edit made with a tool that swaps the inode — sed -i being one example — stays invisible to the container that is running, so reloads continue serving the previous configuration. The remedy the author recommends is to edit in place, then restart the Caddy container. According to the post, such configuration-drift bugs have a habit of masquerading as caching problems when that is not what they are.

Regarding email, the author argues that a real SMTP relay is needed for transactional mail, since mail sent from a VPS on port 25 will land in spam. AWS SES with SMTP credentials is used by the project, and the author is candid that the production-grade SES setup lives in an older AWS account while a newer account remains in the sandbox, which can only send to verified addresses. Host and credentials are taken from environment variables by the resulting architecture, so relays can be swapped without code changes. So that staff replies reach users rather than a dead inbox, Reply-To is set to the reporter on feedback emails.

Object storage holds rendered invoice PDFs and feedback attachments such as screenshots and screen recordings, with the author stating a 15 MB ceiling and a server-side size guard so a large recording cannot exhaust memory. Stripe requires only a developer account to begin, with payment links created per invoice on the server side and the webhook treated as the source of truth for whether an invoice is paid. Subscriptions for Pro and Business run through Stripe Checkout, which the author notes means the project never sees a card number.

Secrets are generated rather than committed. A generate-secrets.sh script produces random database passwords, JWT signing keys and admin passwords at first setup, and they live in environment files on the host referenced by Compose. The repository carries a secret-scanning gate using gitleaks in CI, which the author justifies by saying everyone eventually pastes a key somewhere and the gate turns a bad Tuesday into a red check.

The chapter closes with a checklist covering the domain and nameservers, the grey-cloud A record, Compose services coming up healthy in sequence, Caddy obtaining certificates, a verified SES identity with a probe email sent and received, email routing rules with a verified destination and another probe, backups scheduled and size-checked and stored off the machine, secrets generated on the host with a green repository scan, and a configured and tested Stripe webhook URL. The author's recap is domain, DNS with the grey-cloud caveat, one VPS running Compose, Caddy's automatic TLS, SES with probes, storage, Stripe and scripted secrets, with the traps described as configuration drift that resembles caching until a probe exists for each hop.

The post ends with a promotional note inviting readers to create a free workspace at foxyinvoice.com and redeem a founding code for six months of Pro without a card, and mentions a feedback button in the app. The next chapter is announced as covering CI/CD, described as pushing to main and having the change go live.

For freelancers and small studios running their own tooling, the concrete value here is the ordering and the failure modes rather than the product itself. The author's account suggests that the expensive mistakes in a single-VPS deployment cluster around state that is easy to assume is applied: a DNS proxy toggle that breaks certificate issuance, a bind-mounted config file that a running container never sees, an environment file that silently supplies the wrong credentials, and an email destination left unverified. Each of those is cheap to check with a deliberate probe and expensive to diagnose from symptoms.

The evidence is a single community post by the project's own author, so every operational detail is an author claim rather than an independently verified fact. The post does not give a total monthly cost beyond the two-coffees comparison, does not name the VPS provider beyond saying the project uses a small OVH instance, and does not state which Cloudflare, SES, Stripe or Caddy versions were in use. The SES sandbox limitation is described as a property of the author's newer AWS account rather than a general constraint, and the 15 MB attachment ceiling is presented as a project decision with a server-side guard, not a tested limit. No independent reproduction of the setup or of the described failures is offered in the supplied material.