This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.bdesigns.sse.routes | |
import cats.effect.* | |
import cats.effect.implicits.* | |
import cats.effect.std.* | |
import cats.effect.std.syntax.all.* | |
import cats.implicits.* | |
import cats.syntax.all.* | |
import com.bdesigns.sse.core.MyAuth | |
import com.bdesigns.sse.domain.{ClockStreamedResponse, User} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface MyError { | |
type: "error"; | |
item: {status: number, msg: string}; | |
} | |
interface MyNums { | |
type: "mynums"; | |
item: number[]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
akka { | |
loggers = ["akka.event.slf4j.Slf4jLogger"] | |
logging-filter = "akka.event.slf4j.Slf4jLoggingFilter" | |
loglevel = WARNING | |
stdout-loglevel = WARNING | |
log-config-on-start = off | |
default-dispatcher { | |
fork-join-executor { | |
parallelism-min = 8 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait RedisKeyEvents extends StreamingActor { | |
implicit val actorSystem: ActorSystem[IoTSupervisor.IoTCommand] | |
implicit val executionContext: ExecutionContextExecutor | |
implicit val timeout: Timeout | |
val redisUri: URI = RedisConnector.getConnectionUri | |
val logger: Logger | |
val redisClient: RedisClient = { | |
logger.info(s"Connecting to redis at $redisUri") | |
new RedisClient(redisUri) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
redis: | |
image: redis:6.2.0-alpine | |
volumes: | |
- ./redis-config:/usr/local/etc/redis | |
ports: | |
- "12345:6379" | |
command: redis-server /usr/local/etc/redis/redis.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
} | |
http { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
redis: | |
image: redis:6.2.0-alpine | |
volumes: | |
- ./redis-config:/usr/local/etc/redis | |
ports: | |
- "12345:6379" | |
command: redis-server /usr/local/etc/redis/redis.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.typesafe.sbt.packager.docker.{ExecCmd, _} | |
enablePlugins(JavaAppPackaging) | |
enablePlugins(DockerPlugin) | |
dockerBaseImage := "openjdk:8-jre-alpine" | |
dockerExposedPorts := Seq(8082) | |
dockerRepository := Some("bdesigns") | |
daemonUser in Docker := "daemon" | |
//packageName in Docker := "server-akka" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
redis: | |
image: redis:6.2.0-alpine | |
volumes: | |
- ./redis-config:/usr/local/etc/redis | |
ports: | |
- "12345:6379" | |
command: redis-server /usr/local/etc/redis/redis.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
appendonly yes | |
notify-keyspace-events KEA |
NewerOlder