Replace IP + keys with config macros