google-agents-cli-scaffold
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
julien-infra-hostinger-web
Web infrastructure for Hostinger VPS - Nginx, SSL/Let's Encrypt, static site deployment (Slidev/Astro/Vite), reverse proxy, and 502/504 troubleshooting.
Full skill instructions
Nginx, SSL, and deployment management for srv759970.hstgr.cloud.
First: At the start of execution, display:
🔧 Skill "julien-infra-hostinger-web" activated
| Property | Value |
|---|---|
| Host | [email protected] |
| Nginx config | /etc/nginx/sites-available/ |
| Sites enabled | /etc/nginx/sites-enabled/ |
| Logs | /var/log/nginx/ |
ssh srv759970
sudo nano /etc/nginx/sites-available/mysite
Template (CRITICAL: include IPv6):
server {
listen 80;
listen [::]:80; # IPv6 REQUIRED
server_name mysite.srv759970.hstgr.cloud;
location / {
proxy_pass http://localhost:PORT;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
sudo nginx -t
sudo ln -s /etc/nginx/sites-available/mysite /etc/nginx/sites-enabled/
sudo systemctl reload nginx
sudo certbot --nginx -d mysite.srv759970.hstgr.cloud
sudo certbot certificates # Check status
sudo certbot renew --dry-run # Test renewal
sudo nginx -t # Test config
sudo systemctl reload nginx # Reload (preferred)
sudo tail -f /var/log/nginx/error.log # View errors
ls /etc/nginx/sites-enabled/ # List sites
# Check backend
docker ps | grep service-name
curl localhost:PORT
docker restart container-name
docker logs container-name --tail 50
Add to nginx config:
proxy_read_timeout 300;
proxy_connect_timeout 300;
Cause: Missing IPv6 listeners
Fix:
server {
listen 443 ssl http2;
listen [::]:443 ssl http2; # ADD THIS
# ...
}
sudo nginx -t && sudo systemctl reload nginx
curl -6 https://mysite.srv759970.hstgr.cloud # Test IPv6
ssh srv759970 << 'EOF'
for site in /etc/nginx/sites-enabled/*; do
if ! grep -q "listen \[::\]:443" "$site" 2>/dev/null; then
echo "MISSING IPv6: $(basename $site)"
fi
done
EOF
curl -sI https://site.srv759970.hstgr.cloud | grep -iE "x-frame|x-content|strict-transport"
| Env | Branch | URL | Port | PM2 |
|---|---|---|---|---|
| Production | main | https://incluzhact.fr | 5173 | incluzhact |
| Preview | staging | https://preview.incluzhact.fr | 5174 | incluzhact-preview |
ssh [email protected] << 'EOF'
cd /var/www/incluzhact
git checkout staging # or main
git pull origin staging
npm install
npm run build
pm2 reload incluzhact-preview # or incluzhact
EOF
pm2 status incluzhact
curl -I https://incluzhact.fr
pm2 logs incluzhact --lines 50
ssh srv759970 << 'EOF'
cd /var/www/incluzhact
git reset --hard HEAD^
npm run build
pm2 restart incluzhact
EOF
server {
listen 80;
listen [::]:80;
server_name app.srv759970.hstgr.cloud;
location / {
proxy_pass http://localhost:8000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
server {
listen 80;
listen [::]:80;
server_name wp.srv759970.hstgr.cloud;
client_max_body_size 100M;
location / {
proxy_pass http://localhost:9000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
# 1. Build localement
cd /path/to/project
npm run build # ou pnpm build
# 2. Créer le dossier sur le serveur
ssh srv759970 "sudo mkdir -p /opt/PROJET_NAME && sudo chown automation:automation /opt/PROJET_NAME"
# 3. Uploader les fichiers
scp -r dist/* srv759970:/opt/PROJET_NAME/
# 4. Créer la config Nginx
ssh srv759970 "sudo tee /etc/nginx/sites-available/PROJET_NAME << 'EOF'
server {
listen 80;
listen [::]:80; # IPv6 REQUIS pour certbot!
server_name PROJET_NAME.srv759970.hstgr.cloud;
root /opt/PROJET_NAME;
index index.html;
location / {
try_files \$uri \$uri/ /index.html;
}
# Cache pour assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ {
expires 30d;
add_header Cache-Control \"public, immutable\";
}
}
EOF"
# 5. Activer le site
ssh srv759970 "sudo ln -sf /etc/nginx/sites-available/PROJET_NAME /etc/nginx/sites-enabled/ && sudo nginx -t && sudo systemctl reload nginx"
# 6. Obtenir SSL
ssh srv759970 "sudo certbot --nginx -d PROJET_NAME.srv759970.hstgr.cloud --non-interactive --agree-tos --email [email protected]"
Slidev:
npm run build && scp -r dist/* srv759970:/opt/slides/
Astro:
npm run build && scp -r dist/* srv759970:/opt/astro-site/
Vite/React/Vue:
npm run build && scp -r dist/* srv759970:/opt/app-name/
server {
listen 80;
listen [::]:80; # CRITIQUE: IPv6 requis pour certbot
server_name PROJET.srv759970.hstgr.cloud;
root /opt/PROJET;
index index.html;
location / {
try_files $uri $uri/ /index.html; # SPA fallback
}
# Compression gzip
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml;
# Cache assets statiques
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ {
expires 30d;
add_header Cache-Control "public, immutable";
}
}
Erreur "unauthorized" / 401:
# Vérifier que IPv6 retourne 200 (pas 301 redirect)
ssh srv759970 "curl -6 -I http://PROJET.srv759970.hstgr.cloud"
# Si 301 → Ajouter listen [::]:80 à la config
ssh srv759970 "sudo sed -i 's/listen 80;/listen 80;\n listen [::]:80;/' /etc/nginx/sites-available/PROJET"
ssh srv759970 "sudo nginx -t && sudo systemctl reload nginx"
# Relancer certbot
ssh srv759970 "sudo certbot --nginx -d PROJET.srv759970.hstgr.cloud"
Vérification DNS:
# Le wildcard DNS *.srv759970.hstgr.cloud existe
dig +short monsite.srv759970.hstgr.cloud # Doit retourner 69.62.108.82
# deploy-static.sh <nom-projet> <dossier-local>
PROJECT_NAME=$1
LOCAL_DIR=${2:-dist}
# Upload
scp -r "$LOCAL_DIR"/* srv759970:/opt/"$PROJECT_NAME"/
# Config + SSL si nouveau site
ssh srv759970 "[ ! -f /etc/nginx/sites-available/$PROJECT_NAME ] && {
sudo tee /etc/nginx/sites-available/$PROJECT_NAME << EOF
server {
listen 80;
listen [::]:80;
server_name $PROJECT_NAME.srv759970.hstgr.cloud;
root /opt/$PROJECT_NAME;
index index.html;
location / { try_files \\\$uri \\\$uri/ /index.html; }
}
EOF
sudo ln -sf /etc/nginx/sites-available/$PROJECT_NAME /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d $PROJECT_NAME.srv759970.hstgr.cloud --non-interactive --agree-tos --email [email protected]
}"
echo "✅ Déployé: https://$PROJECT_NAME.srv759970.hstgr.cloud"
# Test nginx
sudo nginx -t
# Reload nginx
sudo systemctl reload nginx
# SSL certificate
sudo certbot --nginx -d domain.com
# Check SSL
sudo certbot certificates
# Deploy INCLUZ'HACT
ssh srv759970 'cd /var/www/incluzhact && git pull && npm install && npm run build && pm2 reload incluzhact'
# Check IPv6
sudo nginx -T | grep -E "listen.*\[::\]"
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.
Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.
Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.
Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.
Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.
Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.
Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.
Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".
Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.
Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Opus.ai: Revolutionize Your Web Experience
Build a no-code AI app in minutes.
An IDE for code migration from legacy to modern frameworks through coding agents.
Automate CGI animation in live-action scenes
Branded artistic QR-code concepts
Launch a website in seconds with AI.
Streamline Your Coding Experience with AI Code Helper
Convert any screenshot or design to clean code.