Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ara-framework/nova-proxy
Nova Proxy is a Server-Side Include Server to compose a page with micro-frontends views
https://github.com/ara-framework/nova-proxy
hypernova microfrontends server-side-includes
Last synced: 4 days ago
JSON representation
Nova Proxy is a Server-Side Include Server to compose a page with micro-frontends views
- Host: GitHub
- URL: https://github.com/ara-framework/nova-proxy
- Owner: ara-framework
- License: mit
- Created: 2019-04-12T13:25:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-14T10:36:46.000Z (almost 4 years ago)
- Last Synced: 2024-06-20T08:00:05.325Z (7 months ago)
- Topics: hypernova, microfrontends, server-side-includes
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 15
- Watchers: 2
- Forks: 4
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nova Proxy
Hypernova Proxy is an Reverse Proxy whick look in the hosts responses for [Hypernova Directives](https://github.com/marconi1992/hypernova-blade-directive) in order to inject the components rendered by [Hypernova Server](https://github.com/airbnb/hypernova).## Environment Variables
```env
HYPERNOVA_BATCH=http://hypernova:3000/batch
CONFIG_FILE=config.json
```## Configuration File
Nova Proxy needs a configuration file:
```json
//nova-proxy.json{
"locations": [
{
"path": "/",
"host": "http://blog:8000",
"modifyResponse": true
}
]
}
```The `locations` items require the `path` and `host` to let know to Nova Proxy which the application is responsible to serve the requested page. By default the path `/` passes all the requests to the declared host.
The `modifyResponse` enable the serve-side includes to that location.
## Using Nova Proxy with [Ara CLI](https://github.com/ara-framework/ara-cli)
Before to run the command we need to set the `HYPERNOVA_BATCH` variable using the Nova service endpoint.
```shell
export HYPERNOVA_BATCH=http://localhost:3000/batch
```The command uses a configuration file named `nova-proxy.json` in the folder where the command is running, otherwise you need to pass the `--config` parameter with a different path.
```
ara run:proxy --config ./nova-proxy.json