2026-02-01 13:24:03 +00:00
|
|
|
server {
|
|
|
|
|
listen 80;
|
2026-02-01 18:46:35 +00:00
|
|
|
listen 100.91.10.103:80;
|
2026-02-01 13:24:03 +00:00
|
|
|
server_name _;
|
|
|
|
|
|
|
|
|
|
root /opt/archipelago/web-ui;
|
|
|
|
|
index index.html;
|
|
|
|
|
|
feat: AIUI chat mode integration with iframe, context broker, overnight loop
- Chat mode: AIUI loads in sandboxed iframe at /dashboard/chat with transparent bg
- Mode switcher: Easy + Pro tabs only, Chat is a launcher button
- Keyboard shortcuts: Cmd+1 (Easy), Cmd+2 (Pro), Cmd+3 (Chat), Cmd+M (cycle)
- Directional transitions: chat slides from/to left, dashboard from/to right
- Context broker: postMessage protocol for quarantined AIUI communication
- AI permissions store: user-controlled toggles for data access categories
- Settings UI: AI Data Access section with per-category toggles
- AIUI container manifest and nginx proxy config for /aiui/
- Deploy script builds AIUI with /aiui/ base path
- Overnight loop infrastructure (loop.sh, prepare.sh, plan.md, prompt.md)
- Security hooks for autonomous overnight runs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 12:06:20 +00:00
|
|
|
# AIUI SPA (Chat mode iframe)
|
|
|
|
|
location /aiui/ {
|
|
|
|
|
alias /opt/archipelago/web-ui/aiui/;
|
|
|
|
|
try_files $uri $uri/ /aiui/index.html;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-01 13:24:03 +00:00
|
|
|
# Serve static files (Vue.js SPA)
|
|
|
|
|
location / {
|
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-17 15:03:34 +00:00
|
|
|
# Peer-to-peer node messaging (receives from other nodes over Tor)
|
|
|
|
|
location /archipelago/ {
|
|
|
|
|
proxy_pass http://127.0.0.1:5678;
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-01 13:24:03 +00:00
|
|
|
# Proxy API requests to backend
|
|
|
|
|
location /rpc/ {
|
|
|
|
|
proxy_pass http://127.0.0.1:5678;
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
2026-02-01 18:46:35 +00:00
|
|
|
|
|
|
|
|
# Increase timeout for long-running operations (e.g., Docker image pulls)
|
2026-02-25 18:04:41 +00:00
|
|
|
proxy_connect_timeout 600s;
|
|
|
|
|
proxy_send_timeout 600s;
|
|
|
|
|
proxy_read_timeout 600s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Proxy apps that set X-Frame-Options - strip header so iframe works
|
|
|
|
|
location /app/nextcloud/ {
|
|
|
|
|
proxy_pass http://127.0.0.1:8085/;
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
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;
|
|
|
|
|
proxy_hide_header X-Frame-Options;
|
|
|
|
|
proxy_hide_header Content-Security-Policy;
|
|
|
|
|
proxy_read_timeout 300s;
|
2026-02-01 18:46:35 +00:00
|
|
|
proxy_send_timeout 300s;
|
2026-02-25 18:04:41 +00:00
|
|
|
}
|
|
|
|
|
location /app/vaultwarden/ {
|
|
|
|
|
proxy_pass http://127.0.0.1:8082/;
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
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;
|
|
|
|
|
proxy_hide_header X-Frame-Options;
|
|
|
|
|
proxy_hide_header Content-Security-Policy;
|
|
|
|
|
}
|
|
|
|
|
location /app/immich/ {
|
|
|
|
|
proxy_pass http://127.0.0.1:2283/;
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
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;
|
|
|
|
|
proxy_hide_header X-Frame-Options;
|
|
|
|
|
proxy_hide_header Content-Security-Policy;
|
|
|
|
|
proxy_read_timeout 300s;
|
|
|
|
|
proxy_send_timeout 300s;
|
|
|
|
|
}
|
|
|
|
|
location /app/penpot/ {
|
|
|
|
|
proxy_pass http://127.0.0.1:9001/;
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
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;
|
|
|
|
|
proxy_hide_header X-Frame-Options;
|
|
|
|
|
proxy_hide_header Content-Security-Policy;
|
2026-02-01 18:46:35 +00:00
|
|
|
proxy_read_timeout 300s;
|
2026-02-25 18:04:41 +00:00
|
|
|
proxy_send_timeout 300s;
|
2026-02-01 13:24:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Proxy WebSocket
|
|
|
|
|
location /ws {
|
|
|
|
|
proxy_pass http://127.0.0.1:5678;
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
proxy_set_header Host $host;
|
2026-02-01 18:46:35 +00:00
|
|
|
|
|
|
|
|
# WebSocket timeout
|
|
|
|
|
proxy_read_timeout 86400s;
|
2026-02-01 13:24:03 +00:00
|
|
|
}
|
|
|
|
|
}
|