diff --git a/README-install.md b/README-install.md index d409cee..e657ed3 100644 --- a/README-install.md +++ b/README-install.md @@ -1571,9 +1571,112 @@ You should get the world famous lichess.org front page! :) Note, not everything is working yet, and you will get `Reconnecting` in your browser until we set up the websockets proxy. + ## Install lila-ws +Set up the `lila-ws` web sockets server thusly. We will run it from +users `debian` home directory... + +Since Lila is currently running in one terminal, open another +terminal to install `lila-ws`. + * https://github.com/ornicar/lila-ws +``` +# Log into server from your workstation: +ssh mychestserver + +# You should be in your homedir +cd + +# Clone lila-ws +git clone https://github.com/ornicar/lila-ws + +# Go there +cd lila-ws/ + +# And run lila web sockets server +sbt run +``` + +Should look like this: + +``` +debian@workstation:~$ ssh mychestserver +Last login: Wed Dec 22 20:17:10 2021 from 143.131.13.195 +debian@mychestserver:~$ cd +debian@mychestserver:~$ git clone https://github.com/ornicar/lila-ws +Cloning into 'lila-ws'... +remote: Enumerating objects: 5577, done. +remote: Counting objects: 100% (665/665), done. +remote: Compressing objects: 100% (400/400), done. +remote: Total 5577 (delta 314), reused 500 (delta 229), pack-reused 4912 +Receiving objects: 100% (5577/5577), 1.04 MiB | 8.55 MiB/s, done. +Resolving deltas: 100% (3494/3494), done. +debian@mychestserver:~$ cd lila-ws/ +debian@mychestserver:~/lila-ws$ sbt run +debian@mychestserver:~/lila-ws$ sbt run +[info] [launcher] getting org.scala-sbt sbt 1.5.7 (this may take some time)... +[info] welcome to sbt 1.5.7 (Debian Java 11.0.13) +[info] loading settings for project lila-ws-build from plugins.sbt ... +[info] loading project definition from /home/debian/lila-ws/project +[info] Updating +https://repo1.maven.org/maven2/com/github/sbt/sbt-native-packager_2.12_1.0/1.9.7/sbt-native-packager-1.9.7.pom + 100.0% [##########] 3.7 KiB (24.6 KiB / s) +[info] Resolved dependencies +[info] Fetching artifacts of +https://repo1.maven.org/maven2/com/github/sbt/sbt-native-packager_2.12_1.0/1.9.7/sbt-native-packager-1.9.7.jar + 100.0% [##########] 860.6 KiB (5.8 MiB / s) +https://repo1.maven.org/maven2/net/java/dev/jna/jna/4.5.0/jna-4.5.0.jar + 100.0% [##########] 1.4 MiB (7.4 MiB / s) +[info] Fetched artifacts of +[info] loading settings for project lila-ws from build.sbt ... +[info] set current project to lila-ws (in build file:/home/debian/lila-ws/) +[info] Updating +https://repo1.maven.org/maven2/com/typesafe/scala-logging/scala-logging_2.13/3.9.4/scala-logging_2.13-3.9.4.pom + 100.0% [##########] 2.6 KiB (34.3 KiB / s) +https://repo1.maven.org/maven2/io/kamon/kamon-influxdb_2.13/2.4.2/kamon-influxdb_2.13-2.4.2.pom + 100.0% [##########] 2.6 KiB (82.7 KiB / s) +https://repo1.maven.org/maven2/ch/qos/logback/logback-classic/1.2.9/logback-classic-1.2.9.pom + 100.0% [##########] 9.5 KiB (71.9 KiB / s) +https://repo1.maven.org/maven2/com/typesafe/akka/akka-actor-typed_2.13/2.6.18/akka-actor-typed_2.13-2.6.18.pom + +... + +https://raw.githubusercontent.com/ornicar/lila-maven/master/org/lichess/scalachess_2.13/10.2.0/scalachess_2.13-10.2.0.jar + 100.0% [##########] 1.1 MiB (2.2 MiB / s) +[info] Fetched artifacts of +[info] compiling 61 Scala sources to /home/debian/lila-ws/target/scala-2.13/classes ... +[info] Non-compiled module 'compiler-bridge_2.13' for Scala 2.13.7. Compiling... +[info] Compilation completed in 11.272s. +[warn] /home/debian/lila-ws/src/main/scala/actor/ClientActor.scala:63:5: match may not be exhaustive. +[warn] It would fail on the following inputs: Unexpected(_), WrongHole +[warn] msg match { +[warn] ^ +[warn] one warning found +[warn] Compile / run / javaOptions will be ignored, Compile / run / fork is set to false +[info] running lila.ws.Boot +SLF4J: A number (1) of logging calls during the initialization phase have been intercepted and are +SLF4J: now being replayed. These are subject to the filtering rules of the underlying logging system. +SLF4J: See also http://www.slf4j.org/codes.html#replay +INFO r.api.Driver [clients-akka.actor.default-dispatcher-6] [Supervisor-1] Creating connection: Connection-2 +INFO r.api.Driver [clients-akka.actor.default-dispatcher-3] [Supervisor-1] Creating connection: Connection-1 +INFO r.c.a.MongoDBSystem [reactivemongo-akka.actor.default-dispatcher-6] [Supervisor-1/Connection-1] Starting the MongoDBSystem +INFO r.c.a.MongoDBSystem [reactivemongo-akka.actor.default-dispatcher-7] [Supervisor-1/Connection-2] Starting the MongoDBSystem +INFO r.core.netty.Pack [reactivemongo-akka.actor.default-dispatcher-6] Netty EPoll successfully loaded (shaded: true) +INFO r.core.netty.Pack [reactivemongo-akka.actor.default-dispatcher-7] Netty EPoll successfully loaded (shaded: true) +INFO r.core.netty.Pack [reactivemongo-akka.actor.default-dispatcher-7] Instantiated reactivemongo.core.netty.Pack +INFO r.core.netty.Pack [reactivemongo-akka.actor.default-dispatcher-6] Instantiated reactivemongo.core.netty.Pack +INFO lila.ws.Lila [clients-akka.actor.default-dispatcher-7] Redis connection took 1374 ms +INFO lila.ws.Monitor$ [run-main-0] lila-ws netty epoll=false kamon=false +INFO lila.ws.Monitor$ [run-main-0] Java version: 11.0.13, memory: 1024MB +INFO l.w.n.NettyServer [run-main-0] Start +INFO l.w.n.NettyServer [run-main-0] Listening to 9664 +``` + +## Configure Web Sockets lila-ws +Configure `lila-ws` thusly: + + ``` vim ./src/main/resources/application.conf # set