Check if a farmers' market is available, or even a vacant lot where gardeners sell surplus produce. You can put up jars if the produce is cheap. I kept a woodstove in town, and fueled it with wood cut by the city from downed trees, and by scraps from the pallet company. You can grow one tomato, one pepper, green onions, and herbs in a small space, and Park Seed, among others, has varieties for container or small-space gardens. Cukes can be trellised. If you have a fence, see if you will be allowed to plant peas or beans.
The days of cheap gas and rural commuters are pretty much gone. You have my sympathy.