Skip to content

Commit

Permalink
fix : flask url 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
sycuuui committed Apr 17, 2024
1 parent 085e3d1 commit 33eaee9
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
@Transactional
@RequiredArgsConstructor
public class VideoService {
@Value("${cloud.flask.url}")
private String baseUrl;

private final S3Client s3Client;
// public VideoRes createFolder(){
Expand Down Expand Up @@ -68,7 +66,7 @@ public String getFilename() {

RestTemplate restTemplate = new RestTemplate();

String url = "http://127.0.0.1:5000/video";
String url = "http://13.124.110.226:5000/video";

ResponseEntity<byte[]> response = restTemplate.postForEntity(url, requestEntity, byte[].class);

Expand Down Expand Up @@ -97,7 +95,7 @@ public String getFilename() {

RestTemplate restTemplate = new RestTemplate();

String url = "http://127.0.0.1:5000/video";
String url = "http://13.124.110.226:5000/video";

ResponseEntity<byte[]> response = restTemplate.postForEntity(url, requestEntity, byte[].class);

Expand Down Expand Up @@ -177,7 +175,7 @@ public String getFilename() {

// Flask 서버로 요청 보내기
RestTemplate restTemplate = new RestTemplate();
String url = baseUrl+"/video"; // Flask 서버 URL
String url = "http://13.124.110.226:5000/video"; // Flask 서버 URL
ResponseEntity<byte[]> response = restTemplate.postForEntity(url, requestEntity, byte[].class);

// Flask에서 반환된 파일을 다시 클라이언트에게 반환
Expand Down Expand Up @@ -233,7 +231,7 @@ public String getFilename() {

// Flask 서버로 요청 보내기
RestTemplate restTemplate = new RestTemplate();
String url = baseUrl+"/video"; // Flask 서버 URL
String url = "http://13.124.110.226:5000/video"; // Flask 서버 URL
ResponseEntity<byte[]> response = restTemplate.postForEntity(url, requestEntity, byte[].class);

// Flask에서 반환된 파일을 다시 클라이언트에게 반환
Expand Down

0 comments on commit 33eaee9

Please sign in to comment.