openvidu-server: license header added to every COTURN service class

pull/88/merge
pabloFuente 2018-06-27 14:47:21 +02:00
parent 8e7c369d20
commit 3c5c2596ba
5 changed files with 76 additions and 6 deletions

View File

@ -14,6 +14,7 @@
* limitations under the License. * limitations under the License.
* *
*/ */
package io.openvidu.server; package io.openvidu.server;
import java.io.IOException; import java.io.IOException;
@ -167,7 +168,7 @@ public class OpenViduServer implements JsonRpcConfigurer {
} }
@PostConstruct @PostConstruct
public void init() throws MalformedURLException, InterruptedException { public void init() throws MalformedURLException, InterruptedException {
OpenviduConfig openviduConf = openviduConfig(); OpenviduConfig openviduConf = openviduConfig();
String publicUrl = openviduConf.getOpenViduPublicUrl(); String publicUrl = openviduConf.getOpenViduPublicUrl();
@ -200,8 +201,9 @@ public class OpenViduServer implements JsonRpcConfigurer {
case "docker": case "docker":
try { try {
OpenViduServer.publicUrl = "wss://" + getContainerIp() + ":" + openviduConf.getServerPort(); String containerIp = getContainerIp();
openviduConf.setFinalUrl("https://" + getContainerIp() + ":" + openviduConf.getServerPort()); OpenViduServer.publicUrl = "wss://" + containerIp + ":" + openviduConf.getServerPort();
openviduConf.setFinalUrl("https://" + containerIp + ":" + openviduConf.getServerPort());
} catch (Exception e) { } catch (Exception e) {
log.error("Docker container IP was configured, but there was an error obtaining IP: " log.error("Docker container IP was configured, but there was an error obtaining IP: "
+ e.getClass().getName() + " " + e.getMessage()); + e.getClass().getName() + " " + e.getMessage());
@ -298,8 +300,8 @@ public class OpenViduServer implements JsonRpcConfigurer {
@EventListener(ApplicationReadyEvent.class) @EventListener(ApplicationReadyEvent.class)
public void printNgrokUrl() { public void printNgrokUrl() {
if (!this.ngrokAppUrl.isEmpty()) { if (!this.ngrokAppUrl.isEmpty()) {
final String NEW_LINE = System.getProperty("line.separator"); final String NEW_LINE = System.lineSeparator();
String str = NEW_LINE + String str = NEW_LINE +
NEW_LINE + " APP PUBLIC IP " + NEW_LINE + " APP PUBLIC IP " +
NEW_LINE + "-------------------------" + NEW_LINE + "-------------------------" +
@ -307,7 +309,7 @@ public class OpenViduServer implements JsonRpcConfigurer {
NEW_LINE + "-------------------------" + NEW_LINE + "-------------------------" +
NEW_LINE; NEW_LINE;
log.info(str); log.info(str);
} }
} }
} }

View File

@ -1,3 +1,20 @@
/*
* (C) Copyright 2017-2018 OpenVidu (https://openvidu.io/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package io.openvidu.server.coturn; package io.openvidu.server.coturn;
import java.io.IOException; import java.io.IOException;

View File

@ -1,3 +1,20 @@
/*
* (C) Copyright 2017-2018 OpenVidu (https://openvidu.io/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package io.openvidu.server.coturn; package io.openvidu.server.coturn;
import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicBoolean;

View File

@ -1,3 +1,20 @@
/*
* (C) Copyright 2017-2018 OpenVidu (https://openvidu.io/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package io.openvidu.server.coturn; package io.openvidu.server.coturn;
import io.openvidu.server.config.OpenviduConfig; import io.openvidu.server.config.OpenviduConfig;

View File

@ -1,3 +1,20 @@
/*
* (C) Copyright 2017-2018 OpenVidu (https://openvidu.io/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package io.openvidu.server.coturn; package io.openvidu.server.coturn;
public class TurnCredentials { public class TurnCredentials {