There have been experiments directly relating the administration of inflammatory endotoxins to immediate depressive symptoms.
All of the stuff you mentioned pertains to inflammation. If gut bacteria is disharmonious or not getting enough fiber it consumes intestinal mucous which creates inflammation