GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Explore
  • Repositories
  • Docs
  • API Center
  • interweb.co.mz
  • PT
  • Help
  • Sign in

This view

  • Original page
  • New address

GeezerVison is showing git.interweb.co.mz — templates

interweb-mz/templates
Watch
1
0
Fork 0
Code Issues Pull requests Projects Releases 1 Wiki Activity
Ready-to-deploy project templates for Interweb Mozambique VPS: static site, Node.js, PHP and WordPress with Docker https://docs.interweb.co.mz
api deploy docker interweb interweb-mz mozambique templates
6 commits 1 branch 1 tag 52 KiB
  • JavaScript 34.2%
  • PHP 30.6%
  • Shell 17.4%
  • HTML 9.3%
  • CSS 5.5%
  • Other 3%
Find a file
Exact
Repository files (latest commit first)
Filename Latest commit message Latest commit date
root f1a58bb635 Link to the brand git
2026-11-28 11:25:24 +02:00
.github Add CI workflow and Dependabot 2026-11-28 09:16:22 +02:00
node-app Show the English README by default 2026-11-28 11:06:18 +02:00
php-app Show the English README by default 2026-11-28 11:06:18 +02:00
static-site Show the English README by default 2026-11-28 11:06:18 +02:00
wordpress Show the English README by default 2026-11-28 11:06:18 +02:00
.gitignore Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
CHANGELOG.md Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
deploy.sh Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
LICENSE Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
README-pt.md Link to the brand git 2026-11-28 11:25:24 +02:00
README.md Link to the brand git 2026-11-28 11:25:24 +02:00
repo.json Use badges from the brand git 2026-11-28 11:00:07 +02:00

README.md

Interweb Mozambique VPS templates

Release License: MIT

Português

Small example projects, ready to publish on a Interweb Mozambique VPS with Docker Compose. Each one has HTTPS out of the box: Caddy gets and renews the certificate for your domain on its own.

Template What it is
static-site HTML and CSS files, served by Caddy.
node-app A Node.js app with no dependencies, behind Caddy.
php-app A PHP site with a contact form, on PHP-FPM behind Caddy.
wordpress WordPress with MariaDB, behind Caddy, with a backup script.

What you need

  • A Interweb Mozambique VPS with Ubuntu or Debian, Docker and the Docker Compose plugin, and ports 80 and 443 open.
  • SSH access to the server, ideally with a key.
  • A domain whose DNS points to the server (see below).
  • ssh and rsync on your computer.

Publish in 4 steps

1. Find the IP of your server with the Interweb Mozambique API, or in Meu Interweb:

export INTERWEB_API_KEY="prod_..."
curl -sS "https://api.interweb.co.mz/v1/servers" -H "Authorization: Bearer $INTERWEB_API_KEY"

The ip field is the address. The key needs vps:read.

2. Point the domain to that IP. If the domain uses Interweb Mozambique DNS, add the records through the API (the key needs dns:write):

for name in @ www; do
  curl -sS -X POST "https://api.interweb.co.mz/v1/domains/mybusiness.co.mz/dns" \
    -H "Authorization: Bearer $INTERWEB_API_KEY" -H "Content-Type: application/json" \
    -d "{\"name\": \"$name\", \"type\": \"A\", \"value\": \"203.0.113.10\", \"ttl\": 3600}"
done

Replace 203.0.113.10 with the IP from step 1. If a record with that name already exists, change it instead. See DNS.

3. Copy the template to the server and create its settings:

sh deploy.sh static-site [email protected]

The first time, deploy.sh creates .env on the server from .env.example and stops. Edit it on the server (ssh [email protected] nano /srv/static-site/.env), at least DOMAIN.

4. Run it again to start the site:

sh deploy.sh static-site [email protected]

Open https://mybusiness.co.mz. The first visit can take a few seconds while Caddy gets the certificate.

To update, change the files and run step 4 again. .env stays on the server and is never copied or deleted.

With an AI agent

With the Interweb Mozambique plugin for Claude Code, ask "deploy this project to my VPS": the deploy-to-vps and connect-domain skills follow these same steps and ask before each change.


Create your API key in the API Center of Meu Interweb. Documentation: https://docs.interweb.co.mz

Maintained by RLX Holdings.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.