please help. i can't get libre-webui to work, i was getting cors errors when the site was downloading assets, so i set up caddy to reverse proxy because apparently you need that for https requests and libre webui forces https with Content-Security-Policy: upgrade-insecure-requests.
Caddyfile:
192.168.100.150:443 {
reverse_proxy libre-webui:3001
tls internal
header {
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
}
}
Caddy setup
caddy:
image: caddy:latest
container_name: caddy
cap_add:
- NET_ADMIN
ports:
- 80:80
- 443:443
- 443:443/udp
volumes:
- ./caddy/conf:/etc/caddy
- ./caddy/site:/srv
- ./caddy/data:/data
- ./caddy/config:/config
restart: unless-stopped
Libre WebUi setup
libre-webui:
image: librewebui/libre-webui:latest
container_name: libre-webui
environment:
- BASE_URL=https://192.168.100.150
- CORS_ORIGIN=https://192.168.100.150
- OLLAMA_BASE_URL=http://ollama:11434
- PORT=3001
volumes:
- ./libre-webui/data:/app/data
- ./libre-webui/temp:/app/backend/temp
depends_on:
- ollama
restart: unless-stopped
The fuck am i missing?