Applies a new configuration. Should be called once during app startup before any background tasks are enqueued.