I didn’t see any issues with that. Special because you can use $config['graylog']['base_uri'] = '/graylog/api/';
and everything should be fine.
If not, please describe your problem, describe the error you are facing.
Maybe you could cross link the discussion with the librenms developers just to be sure that a person who is not you, having all your knowledge might help.