Skip to content
Snippets Groups Projects
Unverified Commit b69cd81d authored by Greg Fodor's avatar Greg Fodor Committed by GitHub
Browse files

Merge pull request #409 from mozilla/feature/hubs-test-domain

Add hubs.local as valid domain for webpack dev server
parents f0c8acb9 7a590f8e
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,12 @@ To bundle javascript and generate the html templates, run:
yarn build
```
## hubs.local Host Entry
When running the full stack for Hubs (which includes [Reticulum](https://github.com/mozilla/reticulum))
locally it is necessary to add a `hosts` entry pointing `hubs.local` to your local server's IP.
This will allow the CSP checks to pass that are served up by Reticulum so you can test the whole app.
## Query Params
- `room` - Id of the room (an integer) that you want to join
......
......@@ -4,4 +4,4 @@ if [ ! -e ../reticulum ]; then
echo "This script assumes reticulum is checked out in a sibling to this folder."
fi
rm -rf ../reticulum/priv/static ; GENERATE_SMOKE_TESTS=true BASE_ASSETS_PATH=https://localhost:4000/ yarn build -- --output-path ../reticulum/priv/static
rm -rf ../reticulum/priv/static ; GENERATE_SMOKE_TESTS=true BASE_ASSETS_PATH=https://hubs.local:4000/ yarn build -- --output-path ../reticulum/priv/static
......@@ -41,6 +41,10 @@ function createHTTPSConfig() {
{
type: 2,
value: "localhost"
},
{
type: 2,
value: "hubs.local"
}
]
}
......@@ -93,6 +97,7 @@ const config = {
https: createHTTPSConfig(),
host: "0.0.0.0",
useLocalIp: true,
public: "hubs.local:8080",
port: 8080,
before: function(app) {
// networked-aframe makes HEAD requests to the server for time syncing. Respond with an empty body.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment