# צריך עזרה בהגדרת discourse באמצעות Caddy כ-rproxy

**URL:** <https://meta.discourse.org/t/need-help-setting-up-discourse-using-caddy-as-rproxy/238456>\
**Category:** Self-hosting\
**Tags:** hosting\
**Created:** [8 בספטמבר,‏ 2022,‏ 12:47pm UTC](https://meta.discourse.org/t/need-help-setting-up-discourse-using-caddy-as-rproxy/238456 "2022-09-08T12:47:23Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Tinsmith6176](https://avatars.discourse-cdn.com/v4/letter/t/87869e/32.png) [@Tinsmith6176](https://meta.discourse.org/u/Tinsmith6176)\
**Post date:** [9 בספטמבר,‏ 2022,‏ 7:20am UTC](https://meta.discourse.org/t/need-help-setting-up-discourse-using-caddy-as-rproxy/238456/7 "2022-09-09T07:20:26Z")

</div>

Yes! it works!

I had to change a couple of things, but it is almost as the first thread you linked.

In Caddyfile i had to write it like this  
Which is a bit different than written in the thread.

```plaintext
forum.mydomain.com {
  reverse_proxy unix//sock/nginx.http.sock
  import cloudflare
}

```

and I’ve added the volume, which of course makes sense when i now think of it.  
I’m using docker-compose.

```plaintext
  caddy:
    container_name: Caddy
    build:
      dockerfile: ./caddy-config/Dockerfile
      context: .
    labels:
      com.centurylinklabs.watchtower.enable: "false"
    ports:
      - 80:80
      - 443:443
    volumes:
      - ./docker_configs/caddy/data:/data
      - ./docker_configs/caddy/Caddyfile:/etc/caddy/Caddyfile
      - ./docker_configs/caddy/srv:/srv
      - /var/discourse/shared/standalone:/sock
    restart: always

```

Thanks alot for the help!

---

_[View the full topic](https://meta.discourse.org/t/need-help-setting-up-discourse-using-caddy-as-rproxy/238456)._
