Hello,
We have a laravel project and another open vidu on Java, we made the link between them and it’s working well.
The laravel project is on a port 80-443 and it includes an SSL (letsencrypt), the other Jaava project in its port 5000, the SSL doesn’t work. How can I activate it in the project open vidu?
Also another issue, sometimes when the live is launched, the session is still active but the live doesn’t work. What can I do ?
Thank you
If you want to deploy two apps in the same OpenVidu server, you will need a reverse proxy (like NGINX) so both apps can share the same port (typically 443) and certificate.
If you have problems with video sessions, please open a new issue providing a detailed description of the problem you have.
Regards
Hello,
We have created the proxy

the socket is connected
We have tested it in a Chrome’s App and it’s working fine
![openvidu url|341x70]
(upload://3YXaYU8gZvbX2NrKBH6tJ1LNmRa.png)
This the project declaration with removed port 4443

When we made the change in the declaration, it trigerred this error
Thank you
OpenVidu deployment has a NGINX proxy. This proxy allows you to define a web application in port 5442 and that application can be used in https://server/ (443 port).
https://docs.openvidu.io/en/2.15.0/deployment/deploying-openvidu-apps/#with-the-same-port-and-certificate-as-openvidu
If you want to deploy 2 applications in https://server/ so application A is https://server/appA and application B is https://server/appB, then you need to deploy a NGINX server listening in 5442 port and configure it to serve those two applications.
Regards
Hello,
I have changed the file .env and also the TYPE Certificate which includes Owncert
I took the files of the certificat and I put them in the Owncert files

After that I restarted openvidu, my certificat is put on the live folder

Here’s our valid certificat

When I execute the project in a navigator, it takes another certificat on Openvidu which is not mine

Thank you for your consideration
Hi @Youness_Atouani can you share the logs of nginx container?
Is the content of /opt/openvidu/owncert/certificate.cert/
the same in opt/openvidu/certificates/live/<your-domain>/fullchain.pem
?
Hello,
Yes it is the same certificate.
Here are the logs of nginx container
nginx_1 | 2020/07/14 14:42:27 [emerg] 7#7: bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | 2020/07/14 14:42:27 [emerg] 7#7: bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | 2020/07/14 14:42:27 [emerg] 7#7: bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | 2020/07/14 14:42:27 [emerg] 7#7: bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | 2020/07/14 14:42:27 [emerg] 7#7: bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | 2020/07/14 14:42:27 [emerg] 7#7: still could not bind()
nginx_1 | nginx: [emerg] still could not bind()
nginx_1 |
nginx_1 | =======================================
nginx_1 | = INPUT VARIABLES =
nginx_1 | =======================================
nginx_1 |
nginx_1 | Config NGINX:
nginx_1 | - Http Port: 80
nginx_1 | - Https Port: 4443
nginx_1 | - Allowed Access in Openvidu Dashboard: all
nginx_1 | - Allowed Access in Openvidu API: all
nginx_1 |
nginx_1 | Config Openvidu Application:
nginx_1 | - Domain name: xxxxxx
nginx_1 | - Certificated: owncert
nginx_1 | - Letsencrypt Email: xxxxxxx
nginx_1 | - Openvidu Application: true
nginx_1 | - Openvidu Application Type: CE
nginx_1 |
nginx_1 | =======================================
nginx_1 | = CONFIGURATION NGINX =
nginx_1 | =======================================
nginx_1 |
nginx_1 | Configure formify.tv domain…
nginx_1 | - New configuration: owncert
nginx_1 | - Old configuration: owncert
nginx_1 | - Owmcert certificate already exists, using them…
nginx_1 |
nginx_1 | =======================================
nginx_1 | = ALLOWED ACCESS =
nginx_1 | =======================================
nginx_1 |
nginx_1 | Adding rules…
nginx_1 |
nginx_1 | Finish Rules:
nginx_1 | Openvidu Dashboard:
nginx_1 | - allow all;
nginx_1 | Openvidu API:
nginx_1 | - allow all;
nginx_1 |
nginx_1 | =======================================
nginx_1 | = START OPENVIDU PROXY =
nginx_1 | =======================================
nginx_1 |
nginx_1 | 2020/07/14 14:42:29 [notice] 53#53: signal process started
nginx_1 | 2020/07/14 14:42:29 [alert] 53#53: kill(14772, 1) failed (3: No such process)
nginx_1 | nginx: [alert] kill(14772, 1) failed (3: No such process)
nginx_1 | ==> /var/log/nginx/access.log <==
nginx_1 | Terminated
nginx_1 | 2020/07/15 09:50:07 [emerg] 8#8: bind() to 0.0.0.0:4443 failed (98: Address in use)
nginx_1 | nginx: [emerg] bind() to 0.0.0.0:4443 failed (98: Address in use)
nginx_1 | 2020/07/15 09:50:07 [emerg] 8#8: bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | 2020/07/15 09:50:07 [emerg] 8#8: bind() to 0.0.0.0:4443 failed (98: Address in use)
nginx_1 | nginx: [emerg] bind() to 0.0.0.0:4443 failed (98: Address in use)
nginx_1 | 2020/07/15 09:50:07 [emerg] 8#8: bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | 2020/07/15 09:50:07 [emerg] 8#8: bind() to 0.0.0.0:4443 failed (98: Address in use)
nginx_1 | nginx: [emerg] bind() to 0.0.0.0:4443 failed (98: Address in use)
nginx_1 | 2020/07/15 09:50:07 [emerg] 8#8: bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | 2020/07/15 09:50:07 [emerg] 8#8: bind() to 0.0.0.0:4443 failed (98: Address in use)
nginx_1 | nginx: [emerg] bind() to 0.0.0.0:4443 failed (98: Address in use)
nginx_1 | 2020/07/15 09:50:07 [emerg] 8#8: bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | 2020/07/15 09:50:07 [emerg] 8#8: bind() to 0.0.0.0:4443 failed (98: Address in use)
nginx_1 | nginx: [emerg] bind() to 0.0.0.0:4443 failed (98: Address in use)
nginx_1 | 2020/07/15 09:50:07 [emerg] 8#8: bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
nginx_1 | 2020/07/15 09:50:07 [emerg] 8#8: still could not bind()
nginx_1 | nginx: [emerg] still could not bind()
nginx_1 |
nginx_1 | =======================================
nginx_1 | = INPUT VARIABLES =
nginx_1 | =======================================
nginx_1 |
nginx_1 | Config NGINX:
nginx_1 | - Http Port: 80
nginx_1 | - Https Port: 4443
nginx_1 | - Allowed Access in Openvidu Dashboard: all
nginx_1 | - Allowed Access in Openvidu API: all
nginx_1 |
nginx_1 | Config Openvidu Application:
nginx_1 | - Domain name: xxxxxx
nginx_1 | - Certificated: owncert
nginx_1 | - Letsencrypt Email: xxxxxxx
nginx_1 | - Openvidu Application: true
nginx_1 | - Openvidu Application Type: CE
nginx_1 |
nginx_1 | =======================================
nginx_1 | = CONFIGURATION NGINX =
nginx_1 | =======================================
nginx_1 |
nginx_1 | Configure formify.tv domain…
nginx_1 | - New configuration: owncert
nginx_1 | - Old configuration: owncert
nginx_1 | mv: can’t rename ‘/default_nginx_conf/ce/default-app.conf’: No such file or directory
nginx_1 | mv: can’t rename ‘/default_nginx_conf/ce/default.conf’: No such file or directory
nginx_1 | - Owmcert certificate already exists, using them…
nginx_1 |
nginx_1 | =======================================
nginx_1 | = ALLOWED ACCESS =
nginx_1 | =======================================
nginx_1 |
nginx_1 | Adding rules…
nginx_1 |
nginx_1 | Finish Rules:
nginx_1 | Openvidu Dashboard:
nginx_1 | - allow all;
nginx_1 | Openvidu API:
nginx_1 | - allow all;
nginx_1 |
nginx_1 | =======================================
nginx_1 | = START OPENVIDU PROXY =
nginx_1 | =======================================
nginx_1 |
nginx_1 | 2020/07/15 09:50:10 [notice] 54#54: signal process started
nginx_1 | 2020/07/15 09:50:10 [alert] 54#54: kill(6565, 1) failed (3: No such process)
nginx_1 | nginx: [alert] kill(6565, 1) failed (3: No such process)
Thank you
It seems like port 80 and 4443 are occupied. Do you have any other services running in this same ports?
You’ll need port 80 for https redirections. If you are using port 4443, use other port for OpenVidu.
Also, please, can you provide the output of:
sudo docker ps