Page MenuHomePhabricator

D8577.id28870.diff
No OneTemporary

D8577.id28870.diff

diff --git a/docs/nix_dev_env.md b/docs/nix_dev_env.md
--- a/docs/nix_dev_env.md
+++ b/docs/nix_dev_env.md
@@ -136,6 +136,7 @@
## Production workflows
- [Services deployment](./nix_services_deployment.md)
+ - [Keyserver](./nix_services_deployment.md#keyserver)
- [Tunnelbroker](./nix_services_deployment.md#tunnelbroker)
## Using alternate shells with Nix
diff --git a/docs/nix_services_deployment.md b/docs/nix_services_deployment.md
--- a/docs/nix_services_deployment.md
+++ b/docs/nix_services_deployment.md
@@ -1,5 +1,39 @@
# Services Deployment
+## Keyserver
+
+Deploying Tunnelbroker consists of configuration, building its Docker image, and deploying that image as a Docker compose service.
+
+### Configuration
+
+Keyserver interacts with many other services and tools. To communicate needed values to the docker instance, the following must be added to `keyserver/.env`:
+
+```
+# Mandatory
+COMM_DATABASE_DATABASE=comm
+COMM_DATABASE_USER=<located in keyserver/secrets/db_config.json>
+COMM_DATABASE_PASSWORD=<located in keyserver/secrets/db_config.json>
+COMM_JSONCONFIG_secrets_user_credentials='{"username":"<user>","password":"<password>"}'
+# Production instance
+COMM_JSONCONFIG_secrets_identity_service_config="{\"identitySocketAddr\":\"https://identity.commtechnologies.org:50054\"}"
+
+# Required for ETH Login
+COMM_JSONCONFIG_secrets_alchemy='{"key":"<alchemy key>"}'
+COMM_JSONCONFIG_secrets_walletconnect='{"key":"<wallet connect key>"}'
+
+# Optional
+COMM_JSONCONFIG_secrets_geoip_license='{"key":"<geoip license key>"}'
+```
+
+### Deploying Keyserver
+
+Once configured, the keyserver can be deployed by simply running:
+
+```
+cd keyserver
+./bash/dc.sh up --build
+```
+
## Tunnelbroker
Deploying Tunnelbroker consists of building its Docker image and deploying that image as a Docker container.

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 2, 4:59 AM (16 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2606717
Default Alt Text
D8577.id28870.diff (1 KB)

Event Timeline