- Mock app UIs (ElectrumX, LND, Fedimint, Bitcoin Core) + the "Not available" notice now use the Archipelago black theme and show the app's My-Apps icon. - Bitcoin Core gets its own UI (/app/bitcoin-core/) so it no longer shows Bitcoin Knots branding; the Knots-branded bitcoin-ui shell is reserved for Bitcoin Knots. - ElectrumX now serves the real electrs-ui shell (+ qrcode.js + a dummy /electrs-status) with the correct ElectrumX icon; "Electrs" renamed to ElectrumX. - My Apps: pre-install Bitcoin Knots again, drop ThunderHub, rename Electrs→ElectrumX. - App store no longer shows "Checking…" forever in demo — non-demoable apps show "No demo" immediately (skip the container-scan state). - Relay endpoint no longer reveals a real domain (randomised host). - Dockerfile/.dockerignore copy docker/electrs-ui into the backend image. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
148 lines
4.8 KiB
Plaintext
148 lines
4.8 KiB
Plaintext
worker_processes 1;
|
|
error_log /var/log/nginx/error.log warn;
|
|
|
|
events {
|
|
worker_connections 768;
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
access_log /var/log/nginx/access.log;
|
|
sendfile on;
|
|
keepalive_timeout 65;
|
|
gzip on;
|
|
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
|
|
|
# Allow large uploads globally (filebrowser, etc.)
|
|
client_max_body_size 0;
|
|
|
|
server {
|
|
listen 80 default_server;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html index.htm;
|
|
|
|
# Proxy API requests to backend
|
|
location /rpc/v1 {
|
|
proxy_pass http://neode-backend:5959;
|
|
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 WebSocket connections
|
|
location /ws {
|
|
proxy_pass http://neode-backend:5959;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
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_read_timeout 86400;
|
|
}
|
|
|
|
# Proxy public assets from backend
|
|
location /public {
|
|
proxy_pass http://neode-backend:5959;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
# Proxy REST API requests
|
|
location /rest {
|
|
proxy_pass http://neode-backend:5959;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
# ElectrumX UI status (polled by the electrs-ui shell)
|
|
location /electrs-status {
|
|
proxy_pass http://neode-backend:5959;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
# Proxy FileBrowser API to mock backend (demo mode)
|
|
location /app/filebrowser/ {
|
|
client_max_body_size 10G;
|
|
proxy_pass http://neode-backend:5959;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_request_buffering off;
|
|
}
|
|
|
|
# Proxy every other app UI (/app/<id>/) to the mock backend, which serves
|
|
# the per-app mock UIs (bitcoin-ui, electrumx, lnd, fedimint) and the
|
|
# generic "Not available in the demo" notice for the rest.
|
|
location /app/ {
|
|
proxy_pass http://neode-backend:5959;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
# Serve AIUI SPA
|
|
location /aiui/ {
|
|
alias /usr/share/nginx/html/aiui/;
|
|
try_files $uri $uri/ =404;
|
|
|
|
location ~* /aiui/assets/ {
|
|
expires 1y;
|
|
add_header Cache-Control "public, immutable";
|
|
}
|
|
}
|
|
|
|
# Proxy AIUI API requests (web-search, etc.) to backend
|
|
location /api/ {
|
|
proxy_pass http://neode-backend:5959;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
# Proxy Ollama (local AI) requests to backend
|
|
location /aiui/api/ollama/ {
|
|
proxy_pass http://neode-backend:5959;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_buffering off;
|
|
proxy_cache off;
|
|
proxy_read_timeout 300s;
|
|
proxy_set_header Connection "";
|
|
}
|
|
|
|
# Proxy Claude API requests to backend (which handles API key + streaming)
|
|
location /aiui/api/claude/ {
|
|
proxy_pass http://neode-backend:5959;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_buffering off;
|
|
proxy_cache off;
|
|
proxy_read_timeout 300s;
|
|
proxy_set_header Connection "";
|
|
}
|
|
|
|
# Serve static files
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
# Cache static assets
|
|
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
|
|
expires 1y;
|
|
add_header Cache-Control "public, immutable";
|
|
}
|
|
}
|
|
}
|