다음 링크 따라서 openvidu 설치 진행
서버의 nginx 는 이미 설치되어 있는 상태
[nginx 서버 설정]
server {
#location / {
# proxy_pass <http://localhost:3000>;
#}
location /api {
proxy_pass <http://localhost:8081/api>;
}
location /jenkins {
rewrite ^ <http://i7d209.p.ssafy.io:9090>;
}
#server_name i7d209.p.ssafy.io;
#root /jenkins/workspace/mungtopia/frontend/dist;
#index index.html;
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/i7d209.p.ssafy.io/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/i7d209.p.ssafy.io/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = i7d209.p.ssafy.io) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
listen [::]:80;
server_name i7d209.p.ssafy.io;
return 404; # managed by Certbot
}
DOMAIN_OR_PUBLIC_IP=i7d209.p.ssafy.io
OPENVIDU_SECRET=mung209pro
CERTIFICATE_TYPE=letsencrypt
[email protected]
#HTTP_PORT=80 #설정 따로하지않고 default 값 사용
#HTTPS_PORT=443 #설정 따로하지않고 default 값 사용
이 상태에서 브라우저로 i7d209.p.ssafy.io 접속 시 nginx 첫화면 뜸
# Domain name. If you do not have one, the public IP of the machine.
# For example: 198.51.100.1, or openvidu.example.com
DOMAIN_OR_PUBLIC_IP=i7d209.p.ssafy.io
# OpenVidu SECRET used for apps to connect to OpenVidu server and users to access to OpenVidu Dashboard
OPENVIDU_SECRET=mung209pro
# Certificate type:
# - selfsigned: Self signed certificate. Not recommended for production use.
# Users will see an ERROR when connected to web page.
# - owncert: Valid certificate purchased in a Internet services company.
# Please put the certificates files inside folder ./owncert
# with names certificate.key and certificate.cert
# - letsencrypt: Generate a new certificate using letsencrypt. Please set the
# required contact email for Let's Encrypt in LETSENCRYPT_EMAIL
# variable.
CERTIFICATE_TYPE=letsencrypt
# If CERTIFICATE_TYPE=letsencrypt, you need to configure a valid email for notifications
[email protected]
# Proxy configuration
# If you want to change the ports on which openvidu listens, uncomment the following lines
# Allows any request to http://DOMAIN_OR_PUBLIC_IP:HTTP_PORT/ to be automatically
# redirected to https://DOMAIN_OR_PUBLIC_IP:HTTPS_PORT/.
# WARNING: the default port 80 cannot be changed during the first boot
# if you have chosen to deploy with the option CERTIFICATE_TYPE=letsencrypt
HTTP_PORT=8442
# Changes the port of all services exposed by OpenVidu.
# SDKs, REST clients and browsers will have to connect to this port
HTTPS_PORT=8443
ERR_CONNECTION_REFUSED 에러
서버에서 HTTPS_PORT 확인 불가능
(HTTP_PORT 인 8442는 확인 가능하지만 8443 포트 확인 불가능한 상태입니다.)