I have had sleep issues my whole life, but what works for me is:
- Get up same time every day
- Moderate excersize every other day
- Stable diet, homecooked healthy food and no soda/beer/candy whatsoever.
- Dim the lights after dinner
- No screens after 8pm (e-ink screens are allowed), no podcasts, no digital content consuming.
- Actively aim to be bored everyday
- Read a good book before bedtime
May sound like a lot, but I sleep now.