refactor: clean up configuration and add production infrastructure

- Add .aitbc.yaml configuration file with test values
- Simplify .gitignore by removing merge conflicts and redundant entries
- Reorganize .gitignore sections for better clarity
- Set chain_id and proposer_id to empty strings in config.py (require explicit configuration)
- Add production Helm values configuration
- Add production nginx configuration
- Update environment variable handling in chain settings
This commit is contained in:
2026-03-19 12:59:34 +01:00
committed by aitbc
parent 5f2ab48b9a
commit b4b5a57390
111 changed files with 13106 additions and 346 deletions

66
website/README.md Normal file
View File

@@ -0,0 +1,66 @@
# AITBC Website
Production website for the AITBC platform.
## File Structure
```
website/
├── index.html # Homepage — platform overview & achievements
├── 404.html # Custom error page
├── aitbc-proxy.conf # Nginx reverse proxy configuration
├── favicon.svg
├── font-awesome-local.css
├── docs/ # All documentation (16 pages)
│ ├── index.html # Docs landing — search, reader-level cards
│ ├── clients.html # Client guide — jobs, wallet, pricing, API
│ ├── miners.html # Miner guide — GPU setup, earnings, Ollama
│ ├── developers.html # Developer guide — SDKs, contributing, bounties
│ ├── full-documentation.html # Complete technical reference
│ ├── components.html # Architecture & components overview
│ ├── flowchart.html # End-to-end system flow diagram
│ ├── api.html # REST API reference
│ ├── blockchain-node.html
│ ├── coordinator-api.html
│ ├── explorer-web.html
│ ├── marketplace-web.html
│ ├── wallet-daemon.html
│ ├── trade-exchange.html
│ ├── pool-hub.html
│ ├── browser-wallet.html # Redirect → /wallet/
│ ├── css/docs.css # Shared stylesheet (1,870 lines)
│ └── js/theme.js # Dark/light theme toggle
└── wallet/
└── index.html # Browser wallet landing page
```
## Deployment
Deployed in the AITBC Incus container:
| | |
|---|---|
| **Container IP** | 10.1.223.93 |
| **Domain** | aitbc.bubuit.net |
| **Docs** | aitbc.bubuit.net/docs/ |
### Push to live
```bash
# Push all files via SSH
scp /home/oib/windsurf/aitbc/website/index.html /home/oib/windsurf/aitbc/website/404.html /home/oib/windsurf/aitbc/website/favicon.svg /home/oib/windsurf/aitbc/website/font-awesome-local.css aitbc-cascade:/var/www/html/
scp /home/oib/windsurf/aitbc/website/docs/*.html aitbc-cascade:/var/www/html/docs/
scp /home/oib/windsurf/aitbc/website/docs/css/docs.css aitbc-cascade:/var/www/html/docs/css/
scp /home/oib/windsurf/aitbc/website/docs/js/theme.js aitbc-cascade:/var/www/html/docs/js/
scp /home/oib/windsurf/aitbc/website/wallet/index.html aitbc-cascade:/var/www/html/wallet/
```
## Key Features
- **Unified header/nav** across all 15 doc pages with theme toggle
- **Live search** on docs index (client-side, 15-page index)
- **Shared CSS** — zero inline `<style>` blocks, one `docs.css`
- **Shared JS** — theme persistence via `theme.js`
- **Zero dead links** — all `href="#"` replaced with real targets
- **Font Awesome 6** consistently across all pages
- **Dark/light mode** with localStorage persistence

57
website/aitbc-proxy.conf Normal file
View File

@@ -0,0 +1,57 @@
server {
listen 80;
listen [::]:80;
server_name aitbc.bubuit.net localhost;
# Forward all requests to the AITBC container
location / {
proxy_pass http://10.1.223.93;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# WebSocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Timeouts
proxy_connect_timeout 60s;
proxy_send_timeout 60s;
proxy_read_timeout 60s;
# Buffer settings
proxy_buffering on;
proxy_buffer_size 4k;
proxy_buffers 8 4k;
}
# Health check endpoint
location /health {
proxy_pass http://10.1.223.93/health;
access_log off;
}
# Logging
access_log /var/log/nginx/aitbc-proxy.access.log;
error_log /var/log/nginx/aitbc-proxy.error.log;
}
# HTTPS configuration (for future SSL setup)
# server {
# listen 443 ssl http2;
# listen [::]:443 ssl http2;
# server_name aitbc.bubuit.net;
#
# ssl_certificate /etc/ssl/certs/aitbc.bubuit.net.crt;
# ssl_certificate_key /etc/ssl/private/aitbc.bubuit.net.key;
#
# location / {
# proxy_pass http://10.1.223.93;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Proto $scheme;
# }
# }