Exercising with inguinal hernia: any experience?

I have my second inguinal hernia, so far a very small one. Surgery is planned for the end of Januray 2025, which effectively means (counting the recovery time) at least half a year without any proper sport (to not make it worse until that time). That’s not possible for me and gets me a lot of disstress with a slight taste of depression, mostly thinking about all the stamina I will loose in six months without exercising. Anyone have any experience with this kind of hernia? How to set up the Freeletics workouts, which exercises to block, or which could be considered safest? And how about running? For sure I am not a first one in this situation. Thank you!