Skip to content

Commit

Permalink
change name env
Browse files Browse the repository at this point in the history
  • Loading branch information
erguchev.ad committed Oct 12, 2024
1 parent 894adde commit 2124917
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/src/VideoProcessor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ class VideoProcessor extends React.Component {
constructor(props) {
super(props);

if (process.env.HOST != undefined && process.env.PORT) {
this.host = process.env.HOST;
this.port = process.env.PORT;
if (process.env.HOST_BACKEND != undefined && process.env.PORT_BACKEND) {
this.host_backend = process.env.HOST_BACKEND;
this.port_backend = process.env.PORT_BACKEND;
} else {
this.host = "127.0.0.1";
this.port = "8000"
this.host_backend = "127.0.0.1";
this.port_backend = "8000"
}

this.playerRef = React.createRef();
Expand Down Expand Up @@ -47,7 +47,7 @@ class VideoProcessor extends React.Component {
formData.append('frame', blob);

let fetN = ++this.fet;
axios.post(`http://${this.host}:${this.port}/api/v0/video/frame/detect`, formData, {
axios.post(`http://${this.host_backend}:${this.port_backend}/api/v0/video/frame/detect`, formData, {
headers: {
'Content-Type': 'multipart/form-data',
'Authorization': 'Bearer *',
Expand Down

0 comments on commit 2124917

Please sign in to comment.