Home page for monoexp.com. Showcase linking to different projects.
|
|
há 13 horas atrás | |
|---|---|---|
| nginx | há 13 horas atrás | |
| public | há 13 horas atrás | |
| LICENSE | há 15 horas atrás | |
| README.md | há 13 horas atrás |
Home page for monoexp.com. Showcase linking to different projects.
Plain HTML and CSS, no build step and no JavaScript.
public/ what gets deployed (the site root)
index.html the page: about section, then project cards
style.css all styles, light and dark via prefers-color-scheme
favicon.svg
nginx/
monoexp.com.conf reference copy of the server's vhost file
Copy one <li class="project"> block in public/index.html and change:
<h3>Gohttps://<name>.monoexp.com/ (leave it out for source-only projects)https://git.monoexp.com/bajdev/<repo>Open a PR; merging it deploys the page once the site is on the pipeline.
| Canonical URL | https://monoexp.com |
www.monoexp.com |
301 redirect to the apex |
| Site root | /srv/www/vhosts/monoexp.com |
| nginx file | /etc/nginx/vhosts.d/monoexp.com.conf |
| Certificate | monoexp-home (covers monoexp.com and www.monoexp.com) |
DNS needs no change: the @ and * A records at Hover already point here.
bajdev over SSH)Certificate. The issue-cert wrapper only accepts subdomains, so the
apex goes through certbot directly:
sudo certbot certonly --webroot -w /srv/www/acme --cert-name monoexp-home \
-d monoexp.com -d www.monoexp.com --deploy-hook 'systemctl reload nginx'
Port 80 already serves /.well-known/acme-challenge/ for every
.monoexp.com name, the apex included.
Site folder and first deploy.
mkdir /srv/www/vhosts/monoexp.com
git clone git@git.monoexp.com:bajdev/home.git ~/src/home
rsync -a --delete ~/src/home/public/ /srv/www/vhosts/monoexp.com/
(From Claude's account the same step is
deploy-static monoexp.com ~/src/home/public; pass the source folder
explicitly, since the script's default would look for ~/src/monoexp/public.)
nginx.
sudo install -o root -g root -m 644 ~/src/home/nginx/monoexp.com.conf /etc/nginx/vhosts.d/
sudo nginx -t && sudo systemctl reload nginx
Check.
curl -sI https://monoexp.com | head -1 # HTTP/2 200
curl -sI https://www.monoexp.com | grep -i location # https://monoexp.com/
curl -sI http://monoexp.com | grep -i location # https://monoexp.com/
Same steps as any other site on the pipeline (see the VPS setup plan, Phase 7):
bajdev/devops, add bajdev/home to sites.json through a PR, modelled
on the existing static entry for gotest, with host monoexp.com and
content folder public. Merge, then reinstall the file:
sudo install -o root -g root -m 644 sites.json /etc/deployd/sites.jsonsudo chown -R deploy /srv/www/vhosts/monoexp.combajdev/home: add deploy (and claude, if Claude will work
on it) as Write collaborators, turn on branch protection for main, and
add a webhook: payload URL http://127.0.0.1:9000/deploy, content type
application/json, the secret from /etc/deployd/secret.env, and only the
Pull Request event.deploy/… tag and a line in
/var/log/deploys.log.