openvidu-server: rename property DEV_CONTAINER to FORCE_PLAIN_HTTP
This commit is contained in:
parent
a2c6c8b4eb
commit
bd3ad19cab
@ -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);
|
||||
}
|
||||
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user