Skip to content

Commit 908db35

Browse files
Merge pull request #977 from gjsjohnmurray/document-pathPrefix
Document the `pathPrefix` property of the `webServer` object
2 parents 5749221 + a7b7817 commit 908db35

File tree

1 file changed

+24
-21
lines changed

1 file changed

+24
-21
lines changed

docs/Configuration.md

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -137,19 +137,21 @@ First, configure one or more servers. You can use the plus sign (`+`) at the top
137137

138138
Provide the following values when prompted:
139139

140-
- **Name of new server definition** - an arbitrary name to identify this server.
141-
- **Description (optional)** - a brief description of the server.
142-
- **Hostname or IP address of web server** - the host for this server.
143-
- **Port of web server** - the WebServer port number for this server.
144-
- **Username** - the username to use in logging in to this server.
145-
- **Confirm connection type** - the protocol used for connections, possible values are **http** and **https**.
140+
- **Name of new server definition** - An arbitrary name to identify this server.
141+
- **Description (optional)** - A brief description of the server.
142+
- **Hostname or IP address of web server** - The host of the InterSystems server, or a standalone web server that publishes the web services of your target InterSystems server via the InterSystems Web Gateway.
143+
- **Port of web server** - The WebServer port number for this server's private web server, or the port number of the standalone web server.
144+
- **Username** - The username to use when logging in to this server.
145+
- **Confirm connection type** - The protocol used for connections. Possible values are **http** and **https**.
146146

147-
Once you have entered these values, the server definition is stored in your user-level `settings.json` file, and the server appears at the top of the **Recent** folder in the InterSystems Tools view.
147+
Once you have entered these values the server definition is stored in your user-level `settings.json` file, and the server appears at the top of the **Recent** folder in the InterSystems Tools view.
148148

149149
If you want to store a password for this server definition, select **Store Password in Keychain** from the context menu for the server in the InterSystems Tools view. If you do not store a password, users are prompted for a password each time they connect to the server. To remove a password from the keychain, Select **Clear Password from Keychain** from the server context menu. For more information, see [Server Context Menu](../extensionui#server-context-menu).
150150

151151
You can create a configuration for a server that is not currently running.
152152

153+
If you are connecting via a standalone web server which bublishes services for more than one InterSystems server you will need to edit the server configuration in your `settings.json` file to add a `pathPrefix` property. See the next section.
154+
153155
## Editing a Server Configuration
154156

155157
If you need to modify a server configuration select **File > Preferences > Settings** (**Code > Preferences > Settings** on Mac) from the menu. Select the **User** settings level. Find **Extensions** in the list in the left pane of the editor window, click to open, then select **InterSystems Server Manager** from the list to find the **InterSystems Server Manager** area of the edit pane, as illustrated in the following screen shot:
@@ -180,23 +182,24 @@ The server configuration in *settings.json* looks similar to the following, with
180182
```
181183
The components of the server definition are as follows:
182184

183-
- **iris-1** - An arbitrary name to identify this server
184-
- **webServer** - The collection of properties that define the web server
185-
- **scheme** - The protocol used for connections
186-
- **host** - the host for this server
187-
- **port** - the WebServer port number for this server
188-
- **username** - the username to use in logging in to this server
189-
- **password** - password for the specified username. Entering the password in this file is acceptable only in limited situations with very low need for security.
185+
- **iris-1** - An arbitrary name to identify this server.
186+
- **webServer** - The collection of properties that define the web server through which you will connect. This can either be the InterSystems server's private web server or a standalone web server configured as an InterSystems Web Gateway.
187+
- **scheme** - The protocol used for connections (http or https).
188+
- **host** - The host of the web server.
189+
- **port** - The port number for this web server.
190+
- **pathPrefix** - Only required when connecting through a standalone web server that publishes the target server's web services under a subfolder.
191+
- **username** - The username to use in logging in to this server.
192+
- **password** - Password for the specified username. Entering the password as plaintext in this file is acceptable only in limited situations with very low need for security.
190193

191-
If you do not store the password securely in the system Keychain or add it to the server definition, anyone using the server needs to supply the password. The InterSystems Server Manager provides the following commands for managing stored passwords in the Command Palette:
194+
If you do not store the password securely in your workstation keychain or add it to the server definition, anyone using the server needs to supply the password. The InterSystems Server Manager provides the following commands for managing stored passwords in the Command Palette:
192195

193-
- **InterSystems Server Manager: Clear Password from Keychain** - remove the password for a selected server
194-
- **InterSystems Server Manager: Store Password in Keychain** - select a server or create a new one and enter a password
196+
- **InterSystems Server Manager: Clear Password from Keychain** - Remove the password for a selected server.
197+
- **InterSystems Server Manager: Store Password in Keychain** - Select a server or create a new one, then enter a password.
195198

196199
{: #config-server-conn}
197200
## Configuring a Server Connection
198201

199-
Open the folder where you want client-side files to be located. Select the **ObjectScript Explorer** button on the Activity Bar. Select the **Choose Server and Namespace** button. This action opens a dialog that lets you select a server, or create a new one. Once you have selected a server and namespace, connection configuration is complete. VS Code adds the server and namespace to the status bar, as shown in the following screen shot.
202+
Open the folder where you want client-side files to be located. Select the **ObjectScript Explorer** button on the Activity Bar. Select the **Choose Server and Namespace** button. This action opens a dialog that lets you select a server or create a new one. Once you have selected a server and namespace, connection configuration is complete. VS Code adds the server and namespace to the status bar, as shown in the following screen shot.
200203

201204
![Connection information in the status bar.](../assets/images/action-for-server-start.png "connection information in the status bar")
202205

@@ -218,9 +221,9 @@ The connection configuration looks like this:
218221

219222
The components of this configuration are:
220223

221-
- **ns** - namespace to use on the server
222-
- **server** - server name as specified in the server configuration
223-
- **active** - specifies whether the connection is active.
224+
- **ns** - Namespace to use on the server
225+
- **server** - Server name as specified in the server configuration
226+
- **active** - Specifies whether the connection is active.
224227

225228
{: #server-actions-menu}
226229
## Add Custom Entries to the Server Actions Menu

0 commit comments

Comments
 (0)