7 languages, 3 pages (What/How/Start), 80-line router, 98KB total.
Features:
- No database, no Composer, no build step — just files on disk
- nginx PHP isolation: only index.php executes
- Bot detection with browser heuristic bypass
- Rate limiting, structured weekly logs, geo-location, Telegram alerts
- Multi-language: Accept-Language auto-detect, nav dropdown
- Article sub-page routing via /start/{slug}
- Apache + Caddy config alternatives documented in Start page
- Sample config — no real keys or secrets
5 lines
1.1 KiB
PHTML
5 lines
1.1 KiB
PHTML
<section class="content-section"><h2 class="section-title">Iniciar</h2><div class="section-content"><h3>⚠️ Passo 1: Configurar o servidor web</h3><p><strong>Não é opcional.</strong> O bare-site requer estas regras do nginx. Copie <code>nginx/default.conf</code> — as três regras críticas:</p><pre style="background:#f5f5f5;padding:1rem;border-radius:6px;font-size:0.85rem;line-height:1.5;"># 1. APENAS index.php pode executar PHP
|
|
location = /index.php { fastcgi_pass ...; }
|
|
location ~ \.php$ { return 404; }
|
|
# 2. Tudo passa pelo index.php
|
|
location / { try_files $uri $uri/ /index.php?$query_string; }</pre><h3>2. Colocar os arquivos</h3><pre style="background:#f5f5f5;padding:1rem;border-radius:6px;font-size:0.9rem;">git clone https://your-repo/bare-site.git /var/www/html/</pre><h3>3. Config</h3><p><code>class/config.php</code> — <code>SITE_NAME</code>, slugs, idiomas.</p><h3>4. Páginas</h3><p>Arquivos <code>.phtml</code> em <code>lng/{lang}/</code> — HTML puro.</p><h3>5. Idioma</h3><p>Adicionar em <code>config.php</code>, criar diretório, traduzir. Aparece automaticamente.</p></div></section>
|