feat: initial release of Protocol Droid v0.2.0
A tool for authoring, sharing, and curating social protocols. Features: - Protocol library with search, tag filtering, and sort by date/relevance - Protocol authoring with structured fields (title, description, steps, outcome, practice, source, tags) - Protocol forking with provenance tracking - Collection creation with searchable protocol picker and ordering - User accounts with roles (admin, member, viewer) - YAML import/export for portability - Self-hostable on LAMP/Cloudron, works in subdirectories - Responsive design with hamburger menu on mobile - About page Security: - CSRF protection via Origin/Referer validation - Session regeneration on login/register - Secure session cookie params (HttpOnly, SameSite, Secure) - Visibility enforcement on private/unlisted items - YAML object injection hardening - Login rate limiting - Path traversal protection - Input validation and length clamping - Vote value constraining Stack: PHP 8.x + MySQL/MariaDB, vanilla JS frontend, no external dependencies. Hippocratic License (HL3-CORE).
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# Protocol Droid — Apache rewrite rules
|
||||
# Route /api/* to the PHP API and serve the frontend for everything else
|
||||
|
||||
RewriteEngine On
|
||||
|
||||
# Route API requests to api/index.php
|
||||
RewriteRule ^api/?$ api/index.php [L]
|
||||
RewriteRule ^api/(.*)$ api/index.php [L]
|
||||
|
||||
# Serve frontend for the root and non-api paths
|
||||
# (Apache will serve index.html, style.css, app.js directly if they exist)
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^$ frontend/index.html [L]
|
||||
|
||||
# Fallback: serve frontend/index.html for SPA routes
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^ frontend/index.html [L]
|
||||
Reference in New Issue
Block a user