From /r/AskHistorians, and should answer your question.
Edit: There's a whole FAQ section on Hitler and religion/philosophy.