Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions docs/developer-guide/local-config.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# Application configuration

The application will load by default it will load the `localConfig.json` which is now stored in the configs\ folder

You can load a custom configuration by passing the `localConfig` argument in query string:

```text
localhost:8081/?localConfig=myConfig#/viewer/openlayers/0
```
The application will load by default it will load the `localConfig.json` which is now stored in the `configs` folder

The **localConfig** file contains the main information about URLs to load and plugins to load in the various modes.

Expand Down Expand Up @@ -171,7 +165,7 @@ For configuring plugins, see the [Configuring Plugins Section](plugins-documenta

**Configuration options:**
- `headers` - Object containing HTTP headers to add to matching requests. Example:

```json
{
"urlPattern": ".*geostore.*",
Expand All @@ -180,9 +174,9 @@ For configuring plugins, see the [Configuring Plugins Section](plugins-documenta
}
}
```

- `params` - Object containing query parameters to add to matching requests. Example:

```json
{
"urlPattern": "\\/geoserver/.*",
Expand All @@ -191,18 +185,18 @@ For configuring plugins, see the [Configuring Plugins Section](plugins-documenta
}
}
```

- `withCredentials` - Boolean to enable sending credentials with requests (useful with proxies):

```json
{
"urlPattern": ".*internal-api.*",
"withCredentials": true
}
```

- `expires` - Optional Unix timestamp (in seconds) for automatic rule expiration. Example:

```json
{
"urlPattern": ".*azure-blob.*",
Expand Down
3 changes: 0 additions & 3 deletions web/client/components/app/StandardApp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import { registerGridFiles } from '../../utils/ProjectionUtils';

import url from 'url';
const urlQuery = url.parse(window.location.href, true).query;

Check failure on line 25 in web/client/components/app/StandardApp.jsx

View workflow job for this annotation

GitHub Actions / test-front-end (24.x)

'urlQuery' is assigned a value but never used

Check failure on line 25 in web/client/components/app/StandardApp.jsx

View workflow job for this annotation

GitHub Actions / test-front-end (20.x)

'urlQuery' is assigned a value but never used

Check failure on line 25 in web/client/components/app/StandardApp.jsx

View workflow job for this annotation

GitHub Actions / test-front-end (22.x)

'urlQuery' is assigned a value but never used

import isObject from 'lodash/isObject';
import isArray from 'lodash/isArray';
Expand Down Expand Up @@ -114,9 +114,6 @@
this.init(config);
};

if (urlQuery.localConfig) {
ConfigUtils.setLocalConfigurationFile(urlQuery.localConfig + '.json');
}
ConfigUtils.loadConfiguration().then((config) => {
const opts = {
...this.props.storeOpts,
Expand Down
Loading