This has correlation to lesser the outbreaks or make them stop altogether. I can attest to that.
This is what some specialist doctors recommend for patient with bad herpes outbreaks.
I guess this would be already good starting point.
Example source (pdf): https://proceedings.med.ucla.edu/wp-content/uploads/2016/03/...