From 6aee8be85a14b558741c7b2ecc77c123c80a4c18 Mon Sep 17 00:00:00 2001 From: Riordan Panayides Date: Fri, 19 May 2023 19:32:42 +0100 Subject: [PATCH] Remove combined deploy config, update env example --- .env-example | 17 ++++++++++------- cd/server.toml | 2 +- fly.toml | 18 ------------------ 3 files changed, 11 insertions(+), 26 deletions(-) delete mode 100644 fly.toml diff --git a/.env-example b/.env-example index 991e76a..091292d 100644 --- a/.env-example +++ b/.env-example @@ -1,8 +1,11 @@ RPC_URL=http://solana-mainnet-api.rpc-node.com -DATABASE_URL= -SQLX_OFFLINE=true -MAX_PG_POOL_CONNS_WORKER=5 -MAX_PG_POOL_CONNS_SERVER=15 -USE_SSL=false -CA_CERT_PATH= -CLIENT_KEY_PATH= \ No newline at end of file +SERVER_BIND_ADDR="127.0.0.1:8080" +PG_HOST= +PG_PORT= +PG_USER= +PG_PASSWORD= +PG_DBNAME= +PG_MAX_POOL_CONNECTIONS=3 +PG_USE_SSL=true +PG_CA_CERT_PATH= +PG_CLIENT_KEY_PATH= \ No newline at end of file diff --git a/cd/server.toml b/cd/server.toml index a4b1bb1..7b9acb4 100644 --- a/cd/server.toml +++ b/cd/server.toml @@ -1,4 +1,4 @@ -app = "openbook-candles" +app = "openbook-candles-server" kill_signal = "SIGTERM" kill_timeout = 30 diff --git a/fly.toml b/fly.toml deleted file mode 100644 index 2e9a440..0000000 --- a/fly.toml +++ /dev/null @@ -1,18 +0,0 @@ -app = "openbook-candles" - -kill_signal = "SIGINT" -kill_timeout = 5 - -[processes] - server = "server markets.json" - worker = "worker markets.json" - -[[services]] - processes = ["server"] - internal_port = 8080 - protocol = "tcp" - - [services.concurrency] - type = "connections" - hard_limit = 1024 - soft_limit = 1024