openvidu-server: rename property DEV_CONTAINER to FORCE_PLAIN_HTTP

pull/750/head
pabloFuente 2022-08-26 11:46:09 +02:00
parent a2c6c8b4eb
commit bd3ad19cab
2 changed files with 4 additions and 4 deletions

View File

@ -125,8 +125,8 @@ public class OpenviduConfig {
@Value("#{'${spring.profiles.active:}'.length() > 0 ? '${spring.profiles.active:}'.split(',') : \"default\"}")
protected String springProfile;
@Value("${DEV_CONTAINER:false}")
private boolean devContainer;
@Value("${FORCE_PLAIN_HTTP:false}")
private boolean forcePlainHttp;
// Config properties
@ -700,7 +700,7 @@ public class OpenviduConfig {
if (domain != null && !domain.isEmpty()) {
this.domainOrPublicIp = domain;
this.openviduPublicUrl = (devContainer ? "http://" : "https://") + domain;
this.openviduPublicUrl = (forcePlainHttp ? "http://" : "https://") + domain;
if (this.httpsPort != null && this.httpsPort != 443) {
this.openviduPublicUrl += (":" + this.httpsPort);
}

View File

@ -1,6 +1,6 @@
server.address=0.0.0.0
server.ssl.enabled=false
DEV_CONTAINER=true
FORCE_PLAIN_HTTP=true
DOMAIN_OR_PUBLIC_IP=localhost
OPENVIDU_SECRET=MY_SECRET
HTTPS_PORT=4443