Skip to content

add Caddy reverse proxy

I cant fork this repo (idk the button is greyed out), I will write this here.

This is meant to be put into: https://gitlab.com/crafty-controller/crafty-documentation/-/blob/main/docs/pages/getting-started/proxies.md

I am not sure if I understood the syntax correctly, but bellow is the thing I would add.

=== "Caddy "
    !!! quote ""
        Contributed by: egnrse
    
    !!! example "Caddyfile"
```
subdomain.example.com {
    reverse_proxy localhost:8443 {
        # needed because of the self-signed certificate from crafty
        transport http {
            tls_insecure_skip_verify
        }
    }
    # optional: log file
    log {
        output file /var/log/caddy/crafty.log {
            roll_size 10mb
                roll_keep 7
                roll_keep_for 720h
            }
        format json
        level info
    }
}
```

This reverse proxies a local crafty container to subdomain.example.com which is now accessible to the internet. I dont know how you do the icons, so I left it out.