const fs = require('fs');
const s = fs.createWriteStream('./1.txt', {start: 10, flags: 'r+'});
s.write('abcde');
s.close();
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")));