diff --git a/openvidu-server/docker/openvidu-server/Dockerfile b/openvidu-server/docker/openvidu-server/Dockerfile index b6bed77d..634e713f 100644 --- a/openvidu-server/docker/openvidu-server/Dockerfile +++ b/openvidu-server/docker/openvidu-server/Dockerfile @@ -18,6 +18,7 @@ COPY ./discover_my_public_ip.sh /usr/local/bin RUN chmod +x /usr/local/bin/entrypoint.sh && \ chmod +x /usr/local/bin/discover_my_public_ip.sh +COPY ./gameserver_ips.txt /usr/local/bin EXPOSE 4443 CMD /usr/local/bin/entrypoint.sh diff --git a/openvidu-server/docker/openvidu-server/gameserver_ips.txt b/openvidu-server/docker/openvidu-server/gameserver_ips.txt new file mode 100644 index 00000000..5e7587f7 --- /dev/null +++ b/openvidu-server/docker/openvidu-server/gameserver_ips.txt @@ -0,0 +1 @@ +68.183.184.220 diff --git a/openvidu-server/src/main/java/io/openvidu/server/utils/GameServerIP.java b/openvidu-server/src/main/java/io/openvidu/server/utils/GameServerIP.java index f2a7c1ff..5581ae44 100644 --- a/openvidu-server/src/main/java/io/openvidu/server/utils/GameServerIP.java +++ b/openvidu-server/src/main/java/io/openvidu/server/utils/GameServerIP.java @@ -26,7 +26,7 @@ public class GameServerIP { private static void loadIPs() { try { - File file = new File("/opt/openvidu/gameserver_ips.txt"); + File file = new File("/usr/local/bin/gameserver_ips.txt"); Scanner scanner = new Scanner(file); while (scanner.hasNextLine()) {