Skip to content

Commit

Permalink
related to #3448: make web server module to use read only registry no…
Browse files Browse the repository at this point in the history
…de for site map generation
  • Loading branch information
t83714 committed Feb 24, 2023
1 parent 9ab6339 commit 9339958
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Fixed an issue that zendesk integration feedback form might not always be opened via footer link
- #3449: Gateway ckanRedirection module performance improvement
- related to #3448: make web server module to use read only registry node for site map generation

## v2.2.2

Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/internal-charts/web-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Kubernetes: `>= 1.14.0-0`
| openInExternalTerriaMapButtonText | string | `nil` | When set, the string here will replace the text of the `Open in National Map` button in Map Preview area. |
| openInExternalTerriaMapTargetUrl | string | `nil` | When set, the `Open in National Map` button in Map Preview area will sent map data to the URL provided and open the map preview there. When not set, UI will by default send to the National Map. |
| previewMapFormatPerference | list | `[{"format":"WMS","urlRegex":"^(?!.*(SceneServer)).*$"},{"format":"ESRI MAPSERVER","urlRegex":"MapServer"},{"format":"WFS","urlRegex":"^(?!.*(SceneServer)).*$"},{"format":"ESRI FEATURESERVER","urlRegex":"FeatureServer"},{"format":"GeoJSON","singleFile":true},{"format":"csv-geo-au","singleFile":true},{"format":"KML","singleFile":true},{"format":"KMZ","singleFile":true}]` | Preview map module format perference list The list includes one or more `format perference item`. When there are more than one data source available, "Preview Map module" will use this perference to determine which data soruce will be used. It will go through the perference list. The first matched format (i.e. find a data source with the format ) will be chosen. A `format perference item` can have the following fields: <ul> <li>format: the format of the preferred data source. compulsory. case insensitive. </li> <li> isDataFile: Optional. Default to `false`. Indicate whether the specified format is a static data file or API. If it's a static file, "Preview Map Module" will attempt to check the target file size and ask user to confirm whether he wants to render the file for large files. The file size threshold is specified by config option `automaticPreviewMaxFileSize`. </li> <li> urlRegex: optional; when exists, it will be used as regex string to double check the data source access url to confirm whether it's indeed the format specified. If not provided or empty, only `format` will be used to determine whether a data source matches the `format perference item`. <li> </ul> |
| registryApiBaseUrlInternal | string | `"http://registry-api/v0"` | |
| registryApiBaseUrlInternal | string | `"http://registry-api-read-only/v0"` | |
| replicas | string | `nil` | no. of replicas required for the deployment. If not set, k8s will assume `1` but allows HPA (autoscaler) alters it. @default 1 |
| resources.limits.cpu | string | `"100m"` | |
| resources.requests.cpu | string | `"10m"` | |
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/internal-charts/web-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ useLocalStyleSheet: false

contentApiBaseUrlInternal: "http://content-api/v0/"

registryApiBaseUrlInternal: "http://registry-api/v0"
registryApiBaseUrlInternal: "http://registry-api-read-only/v0"

adminApiBaseUrl:

Expand Down

0 comments on commit 9339958

Please sign in to comment.