# path to git projects (<project>.git)
$projectroot = "/srv/git"; # [CUSTOM: VPS git root]
+$base_url = "https://git.nutra.tk"; #[CUSTOM : Base URL for links, to force HTTPS]
+
# directory to use for temp files
$git_temp = "/tmp"; # [CUSTOM]
fastcgi_param QUERY_STRING $query_string;
# Pass remote user for authentication (if we add auth later)
fastcgi_param REMOTE_USER $remote_user;
+
+ # Explicitly tell backend we are on HTTPS
+ fastcgi_param HTTPS on;
+
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
listen 443 ssl;
- ssl_certificate /etc/letsencrypt/live/dev.nutra.tk/fullchain.pem; # managed by Certbot
- ssl_certificate_key /etc/letsencrypt/live/dev.nutra.tk/privkey.pem; # managed by Certbot
+ ssl_certificate /etc/letsencrypt/live/earthyenergy.mooo.com/fullchain.pem; # managed by Certbot
+ ssl_certificate_key /etc/letsencrypt/live/earthyenergy.mooo.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}
fi
diff -u --color=always "$DEST_CONF_DIR/$BASENAME" "$FILE" || true
done
+
+ # Diff gitweb.conf
+ if [ -f "$GITWEB_CONF_SRC" ]; then
+ diff -u --color=always /etc/gitweb.conf "$GITWEB_CONF_SRC" || true
+ fi
+
exit 0
fi
sudo cp "$GITWEB_CONF_SRC" /etc/gitweb.conf
fi
+ # Deploy Gitweb frontend assets
+ if [ -d "$REPO_ROOT/scripts/gitweb-simplefrontend" ]; then
+ echo "Deploying Gitweb frontend..."
+ sudo cp -r "$REPO_ROOT/scripts/gitweb-simplefrontend/"* /srv/git/
+ sudo chown -R www-data:www-data /srv/git/
+ fi
+
echo "✓ Deployment successful."
else
echo "✗ Configuration failed validation! Rolling back..."
--- /dev/null
+<div style="text-align: center; margin: 2rem;">
+ <h1>Welcome to NutraTech Git</h1>
+ <p>Please browse our repositories below.</p>
+</div>