백그라운드에서 계속 배포되도록 하고 싶다면 nohup mvn -U clean spring-boot:run & 으로 실행한다.
배포 확인
https://localhost:8443
kurento tutorial에는 keystore가 포함되어 있으므로 https로 돌아간다.
배포주소의 https 8443 포트로 접속해 서버가 잘 돌고 있는지 확인해 준다.
groupcall tutorial은 SPA 어플리케이션이므로 뷰와 서버가 같은 포트에서 돈다.
Coturn
설정
3478, 5349(TLS) 포트 열기
방화벽을 열어 준다. 그런데 만약 CLI에서 수정해야 한다면..?
sudo vi /etc/default/coturn -> TURNSERVER\_ENABLE=1로 바꿔주기
sudo vi /etc/turnserver.conf -> 배포서버의 public ip와 private ip를 적어 준다.
listening-port=3478
tls-listening-port=5349
external-ip=퍼블릭ip/프라이빗ip
listening-ip=프라이빗ip
relay-ip=프라이빗ip
# Lower and upper bounds of the UDP relay endpoints:
# (default values are 49152 and 65535)
min-port=49152
max-port=65535
# Uncomment to run TURN server in 'normal' 'moderate' verbose mode.
# By default the verbose mode is off.
verbose
# Uncomment to use fingerprints in the TURN messages.
# By default the fingerprints are off.
fingerprint
# Uncomment to use long-term credential mechanism.
# By default no credentials mechanism is used (any user allowed).
lt-cred-mech
# Server name used for
# the oAuth authentication purposes
realm=<domain>
# define user and password (usr:pass)
user=<ID>:<PASSWORD>
logfile=/var/log/turn.log
simple-log
ec2 local ip 확인하기 curl http://169.254.169.254/latest/meta-data/local-ipv4 ec2 public ip 확인하기 curl http://169.254.169.254/latest/meta-data/public-ipv4
댓글