Hello, welcome to Healthcare Magic.
You are having fungal infection
of the above mentioned areas known as Tinea cruris
You should take oral and topical treatment of antifungals for around 2-3weeks period under advice of your doctor.
This problem aroused because of your occupation which I suppose is having exposure to heat and humidity. Both of these things increases the propensity of fungus to grow. So you should maintain proper hygiene with twice daily bath, wearing loose cotton clothes, changing your undergarments and general garments two times a day and maintaining a dry environment to prevent growth of fungus which will prevent recurrent/ further infection.
With best health wishes,
Dr Sanjay K Kanodia