Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HowTo: Reverse Proxy with Caddy #238

Open
Saboti opened this issue Apr 8, 2022 · 1 comment
Open

HowTo: Reverse Proxy with Caddy #238

Saboti opened this issue Apr 8, 2022 · 1 comment

Comments

@Saboti
Copy link

Saboti commented Apr 8, 2022

Hi everybody,

just a quick guide to get bobarr running via reverse Proxy.

  1. Setup 2 domains bobarr.xyz.com | bobarrapi.xyz.com
  2. git clone https://github.com/iam4x/bobarr.git
  3. cd bobarr
  4. nano packages/web/utils/api-url.ts
  5. change the line export const apiURL = process.env.WEB_UI_API_URL || 'http://${host}:4000'; to export const apiURL = 'https://bobarrapi.xyz.com'; (PLease use ` instead of ' for the URL)
  6. docker-compose build web
  7. 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
  8. Stop bobar ./bobarr.sh stop
  9. include Caddy-Docker-Proxy in the docker-compose.yml for api and web https://github.com/lucaslorentz/caddy-docker-proxy
  10. example for api:
    networks:
      - default
      - caddy
    labels:
      caddy: https://bobarrapi.xyz.com
      caddy.reverse_proxy: "{{upstreams 4000}}"
  1. Add the networks: part to all other Container.
  2. ./bobarr.sh start
  3. Now everything should work.
@iam4x
Copy link
Owner

iam4x commented Apr 11, 2022

Hey, thank you are you willing to make a PR to enable it by default?
Or maybe add it on the README.

Cheers,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants