options may also include a start option to allow writing data at some position past the beginning of the file, allowed values are in the [0, Number.MAX_SAFE_INTEGER] range. Modifying a file rather than replacing it may require a flags mode of r+ rather than the default mode w. The encoding can be any one of those accepted by Buffer.
Ну https я настроил только на nginx
BACKEND_API: "'https://8.8.8.8:3001/api/v1'",
<?php
var_dump(json_encode(file_get_contents("http://go.urr.ru/test.txt")));
На входе в 1.txt было "12345678901234567890", на выходе в файле оказалось "1234567890abcde67890", всё как и указано в документации.