Need help re configuring connection strings from local pc to sql server

...taking over the maintenance of a web based portal created using R Shiny, hosted through a linux server using visual studio code. I need the current connection which is pointing to a file on an old employees laptop to a connection string. I would like that to be pointed to a server instead.
need help!