Don't create your settings in the web.config file. Use custom website Settings. Create a custom module within the UI and add settings categories and keys to it. You can then gather your values dynamically at runtime and change them on the fly if you need to without having to change your code or a config file.
Take a look at the documentation.