Skip to content

Commit

Permalink
Fixed a couple minor bugs in the VDR/VDG docker after the recent did-…
Browse files Browse the repository at this point in the history
…port addition.

Signed-off-by: Victor Dods <victor.dods@gmail.com>
  • Loading branch information
vdods committed Dec 11, 2024
1 parent d2750a8 commit c8ee9f4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
7 changes: 1 addition & 6 deletions did-webplus/vdg-lib/src/vdg_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ pub struct VDGConfig {
)]
pub service_domain: String,
/// Specify the port on which the service will listen for HTTP requests.
#[arg(
name = "port",
env = "DID_WEBPLUS_VDG_LISTEN_PORT",
long,
default_value = "80"
)]
#[arg(env = "DID_WEBPLUS_VDG_LISTEN_PORT", long, default_value = "80")]
pub listen_port: u16,
/// Specify the URL of the database to connect to, e.g. "postgres:///database-name", "sqlite://name.db",
/// "sqlite://name.db?mode=rwc" (read+write, create if it doesn't yet exist).
Expand Down
2 changes: 1 addition & 1 deletion did-webplus/vdg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ See other targets in `Makefile` for more functionality:

Optionally run the test(s) against the running VDG via

RUST_LOG=debug cargo test -p did-webplus-vdg --all-features -- --nocapture
RUST_LOG=debug cargo test -p did-webplus-vdg --all-features -- --nocapture --ignored
4 changes: 2 additions & 2 deletions did-webplus/vdr-lib/src/vdr_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ pub struct VDRConfig {
/// `did:webplus:<service.domain>%3A<port>:<...>`. This is different than the port on which the VDR
/// listens for requests.
#[arg(
name = "did-port",
env = "DID_WEBPLUS_VDR_DID_PORT",
long,
value_name = "PORT",
default_value = "None"
value_name = "PORT"
)]
pub did_port_o: Option<u16>,
/// Specify the port on which the service will listen for HTTP requests.
Expand Down
4 changes: 2 additions & 2 deletions did-webplus/vdr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ See other targets in `Makefile` for more functionality:

### Testing

Optionally run the test(s) against the running VDG via
Optionally run the test(s) against the running VDR via

RUST_LOG=debug cargo test -p did-webplus-vdg --all-features -- --nocapture
RUST_LOG=debug cargo test -p did-webplus-vdr --all-features -- --nocapture --ignored

This will create a couple of DIDs and update with a fresh set of keys several times each.

0 comments on commit c8ee9f4

Please sign in to comment.