No description
  • CSS 43.4%
  • HTML 29.9%
  • JavaScript 26.7%
Find a file
mihai205 ce6e87ea0d
Some checks failed
deploy / deploy (push) Failing after 16s
Add Forgejo Actions auto-deploy to LXC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 17:12:54 +03:00
.forgejo/workflows Add Forgejo Actions auto-deploy to LXC 2026-10-20 17:12:54 +03:00
assets Initial moweb.ro landing page 2026-10-20 16:54:19 +03:00
deploy Initial moweb.ro landing page 2026-10-20 16:54:19 +03:00
.gitignore Initial moweb.ro landing page 2026-10-20 16:54:19 +03:00
config.js Initial moweb.ro landing page 2026-10-20 16:54:19 +03:00
index.html Initial moweb.ro landing page 2026-10-20 16:54:19 +03:00
README.md Add Forgejo Actions auto-deploy to LXC 2026-10-20 17:12:54 +03:00

moweb.ro

Static site. No build step — edit files, copy to server.

Edit content

config.js — name, tagline, message, email, links, company details. Empty value hides that part.

Change look

assets/css/style.css — colors and font in :root at the top. Background objects are the <svg class="obj"> elements in index.html; position them in the .o-* rules.

Add a page

Copy index.html to e.g. about.html, replace <main> content. Same CSS/JS apply. nginx serves /about thanks to try_files $uri.html.

Deploy (Proxmox LXC, Debian/Ubuntu template)

apt update && apt install -y nginx
mkdir -p /var/www/moweb
cp deploy/nginx.conf /etc/nginx/sites-available/moweb.ro
ln -s /etc/nginx/sites-available/moweb.ro /etc/nginx/sites-enabled/
rm /etc/nginx/sites-enabled/default
nginx -t && systemctl reload nginx

Upload from Windows: scp -r index.html config.js assets root@<lxc-ip>:/var/www/moweb/

HTTPS: apt install -y certbot python3-certbot-nginx && certbot --nginx -d moweb.ro -d www.moweb.ro (needs ports 80/443 forwarded to the LXC), or terminate TLS on an existing reverse proxy.

Auto-deploy (Forgejo Actions)

.forgejo/workflows/deploy.yml rsyncs the site to the LXC on every push to main.

One-time setup:

  1. Enable Actions for the repo and have a Forgejo runner registered (label must match runs-on, default docker).
  2. On the LXC:
    apt install -y rsync
    useradd -m -s /bin/bash deploy
    chown -R deploy:deploy /var/www/moweb
    
  3. On your PC, make a dedicated key: ssh-keygen -t ed25519 -f moweb_deploy -N "". Put moweb_deploy.pub in /home/deploy/.ssh/authorized_keys on the LXC.
  4. Repo secrets: DEPLOY_HOST, DEPLOY_USER (=deploy), DEPLOY_SSH_KEY (contents of moweb_deploy), DEPLOY_KNOWN_HOSTS (output of ssh-keyscan <lxc-ip>).