git-contextor
Version:
A code context tool with vector search and real-time monitoring, with optional Git integration.
83 lines (74 loc) • 3.89 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Git Contextor - Public Access</title>
<script>
// CRITICAL: This script must run before any CSS links to set the correct base path
(function() {
const pathParts = window.location.pathname.split('/').filter(part => part !== '');
let basePath = '/';
console.log('Tunnel page - Full URL:', window.location.href);
console.log('Tunnel page - Pathname:', window.location.pathname);
console.log('Tunnel page - Path parts (filtered):', pathParts);
if (pathParts[0] === 'tunnel' && pathParts[1]) {
// We're in a tunnel: /tunnel/{tunnelId} or /tunnel/{tunnelId}/...
// Always ensure trailing slash for proper relative path resolution
basePath = '/tunnel/' + pathParts[1] + '/';
}
console.log('Tunnel page - Calculated base path:', basePath);
// Write the base tag directly to the document immediately
document.write('<base href="' + window.location.origin + basePath + '">');
console.log('Tunnel page - Base tag written with href:', window.location.origin + basePath);
})();
</script>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<header>
<h1>Git Contextor</h1>
</header>
<main>
<section class="card">
<h2>🚀 Git Contextor Public Access</h2>
<p>You have reached a public access point for a Git Contextor instance, powered by <strong>tunnel.corrently.cloud</strong>.</p>
<p>This service allows for secure, AI-powered interaction with a code repository through encrypted tunnels.</p>
<div class="hint" style="display: block; margin-top: 20px;">
<h3>🔗 Accessing Shared Repositories</h3>
<p>To interact with a shared repository, you need:</p>
<ul>
<li><strong>Share URL:</strong> The complete URL provided by the repository owner</li>
<li><strong>API Key:</strong> Authentication token for secure access</li>
</ul>
<p>The access path format is:</p>
<pre>/shared/{shareId}</pre>
<p>Example: <code>/shared/abc123def456/query</code></p>
</div>
<div class="hint" style="display: block; margin-top: 20px;">
<h3>🛡️ Security Features</h3>
<ul>
<li>End-to-end encrypted tunnels via tunnel.corrently.cloud</li>
<li>API key-based authentication</li>
<li>Time-limited access with configurable expiration</li>
<li>Usage tracking and rate limiting</li>
</ul>
</div>
<div class="hint" style="display: block; margin-top: 20px;">
<h3>⚡ Quick Start</h3>
<p>If you have been provided with access credentials:</p>
<ol>
<li>Use the complete URL you were given (including the share path)</li>
<li>Include the API key in your requests as required</li>
<li>Access the shared context and interact with the AI</li>
</ol>
</div>
</section>
</main>
<footer>
<p>Powered by Git Contextor © 2025 by <a href="https://stromdao.de/">STROMDAO GmbH</a></p>
</footer>
</div>
</body>
</html>