bobarr
bobarr copied to clipboard
HowTo: Reverse Proxy with Caddy
Hi everybody,
just a quick guide to get bobarr running via reverse Proxy.
- Setup 2 domains
bobarr.xyz.com | bobarrapi.xyz.com
-
git clone https://github.com/iam4x/bobarr.git
-
cd bobarr
-
nano packages/web/utils/api-url.ts
- change the line export
const apiURL = process.env.WEB_UI_API_URL || 'http://${host}:4000';
toexport const apiURL = 'https://bobarrapi.xyz.com';
(PLease use ` instead of ' for the URL) -
docker-compose build web
- cd to some other place e.g. /opt and run the setup script for bobarr
curl -o- https://raw.githubusercontent.com/iam4x/bobarr/master/scripts/install.sh | bash
- Stop bobar
./bobarr.sh stop
- include Caddy-Docker-Proxy in the docker-compose.yml for api and web
https://github.com/lucaslorentz/caddy-docker-proxy
- example for api:
networks:
- default
- caddy
labels:
caddy: https://bobarrapi.xyz.com
caddy.reverse_proxy: "{{upstreams 4000}}"
- Add the networks: part to all other Container.
- ./bobarr.sh start
- Now everything should work.
Hey, thank you are you willing to make a PR to enable it by default? Or maybe add it on the README.
Cheers,