Skip to content

Commit

Permalink
chore: rename keyserver to keys-server in strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Basty committed Aug 24, 2023
1 parent b75abcb commit ebdcd72
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 21 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# keyserver-rust
# Keys-Server

## API Guide

Expand All @@ -16,13 +16,13 @@ Setup:
```
- Fill `.env` file with necessary values

Running the keyserver:
Running the keys-server:
```sh
$ source .env # make sure the env variables are set
$ just run
```

Running the docker-compose set up (MongoDB + MongoExpress + Jaeger + Keyserver):
Running the docker-compose set up (MongoDB + MongoExpress + Jaeger + Keys-Server):
```sh
$ source .env # make sure the env variables are set
$ just build-docker
Expand All @@ -32,4 +32,4 @@ $ just run-docker
Running tests:
```sh
$ just test
```
```
12 changes: 6 additions & 6 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,20 @@ fmt:

# Build docker image
build-docker:
@echo '=> Build keyserver docker image'
@echo '=> Build keys-server docker image'
docker-compose -f ./ops/docker-compose.keyserver.yml -f ./ops/docker-compose.storage.yml build keyserver

# Start keyserver & storage services on docker
# Start keys-server & storage services on docker
run-docker:
@echo '==> Start services on docker'
docker-compose -f ./ops/docker-compose.keyserver.yml -f ./ops/docker-compose.storage.yml up -d

# Stop keyserver & storage services on docker
# Stop keys-server & storage services on docker
stop-docker:
@echo '==> Stop services on docker'
docker-compose -f ./ops/docker-compose.keyserver.yml -f ./ops/docker-compose.storage.yml down

# Clean up docker keyserver & storage services
# Clean up docker keys-server & storage services
clean-docker:
@echo '==> Clean services on docker'
docker-compose -f ./ops/docker-compose.keyserver.yml -f ./ops/docker-compose.storage.yml stop
Expand All @@ -79,9 +79,9 @@ clean-storage-docker:
docker-compose -f ./ops/docker-compose.storage.yml stop
docker-compose -f ./ops/docker-compose.storage.yml rm -f

# Restart keyserver on docker
# Restart keys-server on docker
restart-keyserver-docker:
@echo '==> Restart keyserver service on docker'
@echo '==> Restart keys-server service on docker'
docker-compose -f ./ops/docker-compose.keyserver.yml -f ./ops/docker-compose.storage.yml up -d --build --force-recreate --no-deps keyserver

# Lint the project for any quality issues
Expand Down
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl IntoResponse for Error {
StatusCode::INTERNAL_SERVER_ERROR,
ResponseError {
name: "unknown_error".to_string(),
message: "This error should not have occurred. Please file an issue at: https://github.com/walletconnect/keyserver".to_string(),
message: "This error should not have occurred. Please file an issue at: https://github.com/walletconnect/keys-server".to_string(),
}
),
}.into_response()
Expand Down
2 changes: 1 addition & 1 deletion terraform/ecs/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ resource "aws_lb_target_group" "target_group" {

health_check {
protocol = "HTTP"
path = "/health" # KeyServer's health path
path = "/health" # KeysServer's health path
port = var.port
interval = 15
timeout = 10
Expand Down
2 changes: 1 addition & 1 deletion terraform/monitoring/dashboard.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ data "jsonnet_file" "dashboard" {
source = "${path.module}/dashboard.jsonnet"

ext_str = {
dashboard_title = "keyserver - ${module.this.stage}"
dashboard_title = "Keys-Server - ${module.this.stage}"
dashboard_uid = "keyserver-${module.this.stage}"

prometheus_uid = grafana_data_source.prometheus.uid
Expand Down
4 changes: 2 additions & 2 deletions terraform/monitoring/panels/app/app_cpu_memory.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ local _configuration = defaults.configuration.timeseries_resource
);

local cpu_alert(vars) = alert.new(
name = "%s Keyserver App CPU/Memory alert" % vars.environment,
message = "%s Keyserver App CPU/Memory" % vars.environment,
name = "%s Keys-Server App CPU/Memory alert" % vars.environment,
message = "%s Keys-Server App CPU/Memory" % vars.environment,
period = '25m',
frequency = '1m',
conditions = [
Expand Down
4 changes: 2 additions & 2 deletions terraform/monitoring/panels/docdb/available_memory.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ local _configuration = defaults.configuration.timeseries


local mem_alert(vars) = alert.new(
name = "%s Keyserver DocumentDB Freeable Memory Alert" % vars.environment,
message = "%s Keyserver DocumentDB Freeable Memory" % vars.environment,
name = "%s Keys-Server DocumentDB Freeable Memory Alert" % vars.environment,
message = "%s Keys-Server DocumentDB Freeable Memory" % vars.environment,
period = '5m',
frequency = '1m',
notifications = vars.notifications,
Expand Down
4 changes: 2 additions & 2 deletions terraform/monitoring/panels/docdb/cpu.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ local _configuration = defaults.configuration.timeseries_resource


local cpu_alert(vars) = alert.new(
name = "%s Keyserver DocumentDB CPU alert" % vars.environment,
message = "%s Keyserver DocumentDB CPU alert" % vars.environment,
name = "%s Keys-Server DocumentDB CPU alert" % vars.environment,
message = "%s Keys-Server DocumentDB CPU alert" % vars.environment,
period = '5m',
frequency = '1m',
notifications = vars.notifications,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ local _configuration = defaults.configuration.timeseries


local ops_alert(vars) = alert.new(
name = "%s Keyserver DocumentDB LowMem Num Operations Throttled Alert" % vars.environment,
message = "%s Keyserver DocumentDB LowMem Num Operations Throttled" % vars.environment,
name = "%s Keys-Server DocumentDB LowMem Num Operations Throttled Alert" % vars.environment,
message = "%s Keys-Server DocumentDB LowMem Num Operations Throttled" % vars.environment,
period = '5m',
frequency = '1m',
notifications = vars.notifications,
Expand Down

0 comments on commit ebdcd72

Please sign in to comment.