My husband also had undergone hernia surgery. He had an endoscopic surgery. He did not do any strain much for 3 months like did not go horse riding or picked up weight. Now he is absolutely fine. Back to horse riding, scuba diving and picking up weights at the gym.
Hope this helps!