Skip to content

Commit

Permalink
chore: 제발 돌아가게 해주세요
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Yeji committed Nov 1, 2024
1 parent ad93443 commit d81156e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.samtuap.inong.domain.live.dto.LiveSessionRequest;
import org.samtuap.inong.domain.live.dto.LiveSessionResponse;
import org.samtuap.inong.domain.live.service.LiveService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
Expand All @@ -18,13 +19,18 @@
import io.openvidu.java.client.Session;

@RestController
@RequiredArgsConstructor
//@RequiredArgsConstructor
@Slf4j
public class OpenViduController {

private final OpenVidu openvidu;
private final LiveService liveService;

public OpenViduController(@Value("${openvidu.secret}") String openviduSecret, LiveService liveService) {
this.openvidu = new OpenVidu("https://api.inong.shop:4443/", openviduSecret);
this.liveService = liveService;
}

/**
* (1) create session : session id랑 live id랑 다름
*/
Expand Down
7 changes: 4 additions & 3 deletions k8s/openvidu-depl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ spec:
- name: DOMAIN_OR_PUBLIC_IP
value: "api.inong.shop"
- name: OPENVIDU_PUBLICURL
value: "https://api.inong.shop:4443/"
# value: "https://api.inong.shop/openvidu"
value: https://api.inong.shop:4443/
- name: OPENVIDU_SERVER_CONTEXT_PATH
value: "/openvidu"
- name: CERTIFICATE_TYPE
value: letsencrypt
- name: LETSENCRYPT_EMAIL
value: [email protected]
# - name: OPENVIDU_SERVER_SSL
# value: "true"
- name: OPENVIDU_SERVER_SSL
value: "true"

0 comments on commit d81156e

Please sign in to comment.