Firstly you won't find any free server hosting, secondly there won't be read template for csgo legacy X year. The thing you have to do, is to buy VPS, and just host there csgo server from X year, while in config of the server you can just turn off VAC, so any players with "-insecure" can join server.
There are no free server hosting as far as I'm concerned, what you can do at most is get yourself a free tier VPS @ oracle but you gotta use your card (a real one with money on it not a virtual or no funds inside), for the actual csgo legacy, you can just find the manifest and depot of the version you wanna host and do "download_depot 740 <depot_id> <manifest_id>" then just move the downloaded content to your server folder and the rest is pretty much public information (there are YT videos and tutorials everywhere on how to host csgo servers)