HTTPS
Agents sign in with OAuth, which needs HTTPS. Put Aruvi behind a reverse proxy and tell it its public address.
The web app works over plain HTTP, but agents can only connect over HTTPS, or on localhost while you try things out. Run Aruvi behind a reverse proxy that handles certificates, and set ARUVI_PUBLIC_URL to the address people and agents use:
ARUVI_PUBLIC_URL=https://aruvi.example.com
Without it, Aruvi assumes http://localhost:4100, and sign-in links for agents would point there.
Aruvi trusts X-Forwarded-For and X-Forwarded-Proto only from loopback and private network addresses, which is where a reverse proxy usually runs. It uses the forwarded address for sign-in rate limits.
Caddy
Caddy gets and renews certificates by itself.
aruvi.example.com {
reverse_proxy localhost:4100
}
nginx
Live updates use server-sent events, so turn off buffering for them. Uploads can be up to 50 MB.
server {
listen 443 ssl;
http2 on;
server_name aruvi.example.com;
ssl_certificate /etc/letsencrypt/live/aruvi.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/aruvi.example.com/privkey.pem;
client_max_body_size 60m;
location / {
proxy_pass http://127.0.0.1:4100;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
proxy_read_timeout 1h;
}
}
Traefik
With Docker labels:
services:
aruvi:
image: ghcr.io/praveenjuge/aruvi:latest
environment:
ARUVI_PUBLIC_URL: https://aruvi.example.com
volumes:
- aruvi-data:/data
labels:
- traefik.enable=true
- traefik.http.routers.aruvi.rule=Host(`aruvi.example.com`)
- traefik.http.routers.aruvi.entrypoints=websecure
- traefik.http.routers.aruvi.tls.certresolver=letsencrypt
- traefik.http.services.aruvi.loadbalancer.server.port=4100
volumes:
aruvi-data:
Check it
Open https://aruvi.example.com/.well-known/oauth-protected-resource/mcp. It should show your address in resource. If it shows localhost, ARUVI_PUBLIC_URL isn’t set.