Spring
- application.properties
# JPA
spring.jpa.hibernate.naming.implicit-strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
spring.jpa.hibernate.naming.physical-strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL57Dialect
# MySQL
spring.data.web.pageable.one-indexed-parameters=true
spring.datasource.url=jdbc:mysql://{DB url}/{DB 이름}?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Seoul&zeroDateTimeBehavior=convertToNull&rewriteBatchedStatements=true
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.hikari.username={db ID}
spring.datasource.hikari.password={db 비밀번호)
# Redis
spring.redis.host={DB url}
spring.redis.port={port 번호}
# S3
cloud.aws.s3.bucket={S3 이름}
cloud.aws.region.static={S3 지역}
cloud.aws.stack.auto=false
cloud.aws.credentials.access-key={aws accessKey}
cloud.aws.credentials.secret-key={aws secret}
# jwt
jwt.header=Authorization
jwt.secret={jwt 비밀키}
# unit is ms. 15 * 24 * 60 * 60 * 1000 = 15days
jwt.expiration=1296000000
# openvidu
OPENVIDU_URL: {openvidu url}
OPENVIDU_SECRET: {openvidu 비밀키}
/opt
로 이동
cd /opt
openvidu 설치
curl <https://s3-eu-west-1.amazonaws.com/aws.openvidu.io/install_openvidu_latest.sh> | bash
openvidu 환경설정
cd openvidu
$ nano .env
# OpenVidu configuration
# ----------------------
# 도메인 또는 퍼블릭IP 주소
DOMAIN_OR_PUBLIC_IP=i9c111.p.ssafy.io
# 오픈비두 서버와 통신을 위한 시크릿
OPENVIDU_SECRET=MMT_SECRET
# Certificate type
CERTIFICATE_TYPE=letsencrypt
# 인증서 타입이 letsencrypt일 경우 이메일 설정
[email protected]
# HTTP port
HTTP_PORT=8448
# HTTPS port(해당 포트를 통해 오픈비두 서버와 연결)
HTTPS_PORT=8447
openvidu 서버 실행
./openvidu start
ctrl + c
를 눌러 백그라운드 실행으로 전환