document-server-proxy icon indicating copy to clipboard operation
document-server-proxy copied to clipboard

Caddy v2

Open udlch opened this issue 5 years ago • 3 comments

Hi. Could you please add Caddyfile example for Caddy v2 reverse proxy.

udlch avatar Apr 27 '20 15:04 udlch

Yes, would love to see an example as well!

szaimen avatar Mar 22 '22 17:03 szaimen

Especially an virtual-host example

szaimen avatar Mar 22 '22 17:03 szaimen

just figured out what to do for virtualhost:

https://yourdomain.com:443 {
    # Onlyoffice
    route /onlyoffice/* {
        uri strip_prefix /onlyoffice
        reverse_proxy {$ONLYOFFICE_HOST}:80 {
            header_up X-Forwarded-Host {http.request.host}/onlyoffice
        }
    }
}

szaimen avatar Mar 22 '22 18:03 szaimen