You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,11 @@ Prototype to explore serving/viewing zarr data.
4
4
5
5
This repository contains a simple server application made using [Express](https://expressjs.com/).
6
6
7
-
The application has 2 endpoints:
7
+
The application has 3 endpoints:
8
8
9
9
- the endpoint `/files/{path-to-zarr}`, that serves the content of Zarr files checking user authorization.
10
10
- the endpoint `/alive`, that returns the status of the service.
11
+
- the optional endpoint `/vizarr`, that serves vizarr static files when the `VIZARR_STATIC_FILES_PATH` environment variable is set.
11
12
12
13
> To run fractal-data you need to have an active instance of `fractal-server` and an active instance of `fractal-web`. You need to log-in to `fractal-web` from the browser using a user that has been authorized to see the vizarr files. Details about authorization are explained in the next section.
13
14
@@ -72,6 +73,7 @@ To start the application installed in this way see the section [Run fractal-data
72
73
-`PORT`: the port where fractal-data app is served;
73
74
-`BIND_ADDRESS`: specifies the IP address for the server to bind to; use `0.0.0.0` (IPv4) or `::` (IPv6) to listen on all interfaces, `127.0.0.1` (IPv4) or `::1` (IPv6) for localhost only; the default value is `0.0.0.0`;
74
75
-`FRACTAL_SERVER_URL`: the base URL of fractal-server;
76
+
-`VIZARR_STATIC_FILES_PATH`: path to the files generated running `npm run build` in Vizarr source folder; this variable is optional and, if present, it will be used to serve Vizarr static files from the `/vizarr` endpoint;
75
77
-`BASE_PATH`: base path of fractal-data application;
76
78
-`AUTHORIZATION_SCHEME`: defines how the service verifies user authorization. The following options are available:
77
79
-`fractal-server`: the paths that can be accessed by each user are retrieved calling fractal-server API.
@@ -205,7 +207,7 @@ The output is located in the `dist` folder.
205
207
206
208
### Run fractal-data
207
209
208
-
Then go back to fractal-data folder and run `npm run start` to start the project. The server will start on port 3000.
210
+
Then go back to fractal-data folder and run `npm run start` to start the project. The server will start on port 3000. Remember to set the `VIZARR_STATIC_FILES_PATH`, to serve Vizarr static files from the `/vizarr` endpoint. Vizarr static files need to be served from the same port and domain of the fractal-data service, otherwise you will encounter CORS issues.
0 commit comments