Reverse proxy cctv


(mike) #1

I have running Caddy server on windows 10 is it possible to reverse proxy cctv and how ?.


(Matthew Fay) #2

Hi @jbravo2uk,

Caddy has a HTTP proxy. If your CCTV is served via webpage, you just need the address it’s serving it on and configure the proxy directive accordingly. The docs have instructions and examples on how to do this:

https://caddyserver.com/docs/proxy


(mike) #3

I am still trying to figure this out could you please give me an example how the caddyfile would look.


(Matthew Fay) #4

Hi @jbravo2uk,

The examples (https://caddyserver.com/docs/proxy#examples) cover quite a few use cases.

To turn it into a Caddyfile, all it needs is that the first line must be the address of the site you want to serve.

So it might look as simple as:

example.com
proxy / [CCTV-host]

Or it could be more complicated - entirely depending on what your upstream server requires and how you want to serve it.


(mike) #5

I’m still haveing problems doing this I can access my annke CCTV though a no IP address but using annke CCTV ip address and opening a port up for CCTV on my router which is not ideal.


(Matthew Fay) #6

I’m not sure how to help you. Can you be more specific?

  • What did you try?
  • What did you expect to happen?
  • What happened instead?

Your (unredacted) Caddyfile and any specific error messages you receive will also be useful.


(system) closed #7

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.