Making config a template and adding ping endpoint