Files
aitbc/website/agent/.htaccess
aitbc ef94cc6da4
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Successful in 3s
Deploy to Testnet / deploy-testnet (push) Successful in 1m18s
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Documentation Validation / validate-docs (push) Failing after 12s
Documentation Validation / validate-policies-strict (push) Successful in 5s
refactor: remove browser wallet extensions from repository
- Deleted extensions/ directory containing Chrome and Firefox wallet implementations
- Removed aitbc-wallet and aitbc-wallet-firefox subdirectories with all source files
- Removed Firefox .xpi package (v1.0.5)
- Deleted extension documentation (README.md files, API reference, architecture diagrams)
- Removed manifest files, background scripts, content scripts, injected scripts, and popup UI code
- Cleaned up wallet API implementation (connect
2026-05-19 18:08:36 +02:00

45 lines
1.3 KiB
ApacheConf

# Apache configuration for agent endpoints
# Enable CORS for agent access
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "GET, OPTIONS"
Header always set Access-Control-Allow-Headers "Content-Type, Accept"
# Set JSON content type for .json files
<FilesMatch "\.json$">
ForceType application/json
Header always set Content-Type "application/json"
</FilesMatch>
# Cache control - short cache for dynamic content
<FilesMatch "discovery\.json$">
Header always set Cache-Control "max-age=60, must-revalidate"
</FilesMatch>
<FilesMatch "islands\.json$">
Header always set Cache-Control "max-age=30, must-revalidate"
</FilesMatch>
<FilesMatch "chains\.json$">
Header always set Cache-Control "max-age=60, must-revalidate"
</FilesMatch>
# Longer cache for static content
<FilesMatch "openapi\.json$">
Header always set Cache-Control "max-age=3600"
</FilesMatch>
<FilesMatch "join/.*\.json$">
Header always set Cache-Control "max-age=3600"
</FilesMatch>
# Disable caching for health endpoint
<FilesMatch "health$">
Header always set Cache-Control "no-cache, no-store, must-revalidate"
</FilesMatch>
# Enable rewrite engine for clean URLs
RewriteEngine On
# Redirect /agent to /agent/ (add trailing slash)
RewriteRule ^/agent$ /agent/ [R=301,L]