Skip to content

Commit

Permalink
Merge branch 'master' into bump-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity authored Dec 8, 2023
2 parents ede5abf + 09939b0 commit 7ca5286
Show file tree
Hide file tree
Showing 13 changed files with 305 additions and 504 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ Previously, `dfx ledger top-up` only accepted canister principals. Now it accept
A change to `curl --help` output made it so the install script did not detect
that the `--proto` and `--tlsv1.2` options are available.

### feat: Added support for icx-proxy `--domain` parameter

In order to access a local replica through a domain name or domain names,
it's necessary to pass the `--domain` parameter to icx-proxy. dfx now supports
this in configuration and as a parameter to dfx start. You can specify a single
domain or a list of domains in any of the following ways:

- in networks.json, in `.<network>.proxy.domain`
- in dfx.json, in `.networks.<netowrk>.proxy.domain`
- in dfx.json, in `.defaults.proxy.domain`
- to dfx start, as `dfx start --domain <domain1> --domain <domain2> ...`

## Dependencies

### Candid UI
Expand Down
1 change: 1 addition & 0 deletions docs/cli-reference/dfx-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ You can use the following option with the `dfx start` command.
| `--host host` | Specifies the host interface IP address and port number to bind the frontend to. The default for the local shared network is `127.0.0.1:4943`, while the default for a project-specific network is '127.0.0.1:8000'. |
| `--bitcoin-node host:port` | Specifies the address of a bitcoind node. Implies `--enable-bitcoin`. |
| `--artificial-delay milliseconds` | Specifies the delay that an update call should incur. Default: 600ms |
| `--domain domain` | A domain that can be served. Can be specified more than once. These are used for canister resolution [default: localhost] |

## Examples

Expand Down
37 changes: 37 additions & 0 deletions docs/dfx-json-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,16 @@
}
]
},
"proxy": {
"anyOf": [
{
"$ref": "#/definitions/ConfigDefaultsProxy"
},
{
"type": "null"
}
]
},
"replica": {
"anyOf": [
{
Expand Down Expand Up @@ -646,6 +656,23 @@
}
}
},
"ConfigDefaultsProxy": {
"description": "Configuration for icx-proxy.",
"type": "object",
"required": [
"domain"
],
"properties": {
"domain": {
"description": "A list of domains that can be served. These are used for canister resolution [default: localhost]",
"allOf": [
{
"$ref": "#/definitions/SerdeVec_for_String"
}
]
}
}
},
"ConfigDefaultsReplica": {
"title": "Local Replica Configuration",
"type": "object",
Expand Down Expand Up @@ -735,6 +762,16 @@
}
]
},
"proxy": {
"anyOf": [
{
"$ref": "#/definitions/ConfigDefaultsProxy"
},
{
"type": "null"
}
]
},
"replica": {
"anyOf": [
{
Expand Down
40 changes: 40 additions & 0 deletions docs/networks-json-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,23 @@
}
}
},
"ConfigDefaultsProxy": {
"description": "Configuration for icx-proxy.",
"type": "object",
"required": [
"domain"
],
"properties": {
"domain": {
"description": "A list of domains that can be served. These are used for canister resolution [default: localhost]",
"allOf": [
{
"$ref": "#/definitions/SerdeVec_for_String"
}
]
}
}
},
"ConfigDefaultsReplica": {
"title": "Local Replica Configuration",
"type": "object",
Expand Down Expand Up @@ -194,6 +211,16 @@
}
]
},
"proxy": {
"anyOf": [
{
"$ref": "#/definitions/ConfigDefaultsProxy"
},
{
"type": "null"
}
]
},
"replica": {
"anyOf": [
{
Expand Down Expand Up @@ -319,6 +346,19 @@
"application",
"verifiedapplication"
]
},
"SerdeVec_for_String": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
}
}
Loading

0 comments on commit 7ca5286

Please sign in to comment.