Loki unable connect querier and query front end

Frontend processor go error processing request err rpc error code unimplemented desc unexpected transport code ,

I need a sample config file with frontend worker querier and queryfrontend , please let me know where i will get sample file