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

Caddy v2 #19

Open
udlch opened this issue Apr 27, 2020 · 3 comments
Open

Caddy v2 #19

udlch opened this issue Apr 27, 2020 · 3 comments

Comments

@udlch
Copy link

udlch commented Apr 27, 2020

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

@szaimen
Copy link

szaimen commented Mar 22, 2022

Yes, would love to see an example as well!

@szaimen
Copy link

szaimen commented Mar 22, 2022

Especially an virtual-host example

@szaimen
Copy link

szaimen commented Mar 22, 2022

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
        }
    }
}

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