Config files for most popular boards are included in the GitHub repository, and are downloaded to your Pi when you install Klipper. Here is a link to the Octopus config for reference.
It seems it is just moving into the wrong direction when homing. Invert the dir pin of the respective stepper(s).
Depending on the reason for that a “working” config might not fix your issue and can introduce new topics.
But to have a more or less good basis test such a config and then if still not working upload the latest klippy.log!
Inverting the dir pin does nothing, and this is one of the things that drive me crazy. I have two new boards, Fly D5 mellow, and Octopus 1.1. The problem in board?! Hardly imaginable. The problem in cofig, is possible, I used the config provided by Jakep_82 for cotopus 1.1 and it does absolutely the same thing