mirror of
https://github.com/nasa/openmct.git
synced 2025-02-21 09:52:04 +00:00
Merge branch 'master' of github.com:nasa/openmct into open967
This commit is contained in:
commit
a8900f3d6d
16
README.md
16
README.md
@ -36,6 +36,22 @@ Open MCT is now running, and can be accessed by pointing a web browser at [http:
|
||||
|
||||
Documentation is available on the [Open MCT website](https://nasa.github.io/openmct/documentation/). The documentation can also be built locally.
|
||||
|
||||
### Examples
|
||||
|
||||
The clearest examples for developing Open MCT plugins are in the
|
||||
[tutorials](https://nasa.github.io/openmct/docs/tutorials/) provided in
|
||||
our documentation.
|
||||
|
||||
For a practical example of a telemetry adapter, see David Hudson's
|
||||
[Kerbal Space Program plugin](https://github.com/hudsonfoo/kerbal-openmct),
|
||||
which allows [Kerbal Space Program](https://kerbalspaceprogram.com) players
|
||||
to build and use displays for their own missions in Open MCT.
|
||||
|
||||
Additional examples are available in the `examples` hierarchy of this
|
||||
repository; however, be aware that these examples are
|
||||
[not fully-documented](https://github.com/nasa/openmct/issues/846), so
|
||||
the tutorials will likely serve as a better starting point.
|
||||
|
||||
### Building the Open MCT Documentation Locally
|
||||
Open MCT's documentation is generated by an
|
||||
[npm](https://www.npmjs.com/)-based build. It has additional dependencies that
|
||||
|
10
app.js
10
app.js
@ -67,10 +67,14 @@
|
||||
});
|
||||
|
||||
app.use('/proxyUrl', function proxyRequest(req, res, next) {
|
||||
console.log('Proxying request to: ', req.query.url);
|
||||
var targetUrl = req.query.url;
|
||||
var queryParameters = req.query;
|
||||
console.log('Proxying request to: ', targetUrl);
|
||||
delete queryParameters['url'];
|
||||
req.pipe(request({
|
||||
url: req.query.url,
|
||||
strictSSL: false
|
||||
url: targetUrl,
|
||||
strictSSL: false,
|
||||
qs: queryParameters
|
||||
}).on('error', next)).pipe(res);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user