Skip to content

Commit b09ff96

Browse files
committed
docs: add localhost proxy instructions and clarify wording
1 parent 7efa533 commit b09ff96

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,20 @@ MIFOS_DEFAULT_CHAR_DELIMITER=,
163163

164164
To proxy to a local Fineract server instead:
165165

166-
1. Open `proxy.conf.js`
167-
2. Comment out the sandbox proxy configuration
168-
3. Uncomment the localhost proxy configuration (lines marked with `// Uncomment this configuration...`)
169-
4. Ensure your local Fineract instance is running on `http://localhost:8443`
170-
5. Restart the development server
166+
Use the provided localhost proxy file (recommended for `ng serve`):
167+
168+
1. Start the dev server with the localhost proxy:
169+
170+
```bash
171+
ng serve --proxy-config proxy.localhost.conf.js
172+
```
173+
174+
2. Ensure your local Fineract instance is running on `http://localhost:8443`.
175+
176+
Notes:
177+
178+
- `proxy.localhost.conf.js` forwards `/fineract-provider` to your local backend to avoid CORS during development.
179+
- The `HttpsProxyAgent` / `setupForProxy` logic (present in `proxy.conf.js`) is only necessary when an upstream corporate/HTTP proxy must be used (set via `HTTP_PROXY`/`http_proxy`). It is not required for a direct `localhost` backend.
171180

172181
### Proxy Features
173182

0 commit comments

Comments
 (0)