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
With this setup, public URLs remain under `/data/...`. Nginx first looks in `/usr/share/nginx/html/data` and then falls back internally to `/usr/share/nginx/html/data_storage`.
When `PROCESS_ALL_DATA_FIRST_TIME=true` is set, the container will process all events in the data directory at startup before starting the Nginx server. This is useful for initializing the `events.json` file on first deployment.
78
+
When `PROCESS_ALL_DATA_FIRST_TIME=true` is set, the container will process events at startup before starting the Nginx server. It processes recent events from the realtime data directory first, then starts a full rebuild in the background; the full rebuild also includes `data_storage` when mounted.
64
79
65
80
**Run with a specific environment profile (e.g. EU):**
The `--data-storage-dir` option is valid only for full rebuilds. If the same event exists in both directories, the realtime directory has priority and the storage copy is skipped.
Then open `http://localhost:8000` in your browser.
140
168
169
+
Python's simple HTTP server cannot provide the `/data/...` to `data_storage/` fallback. Use the provided Nginx configuration when historical storage must be exposed without changing public URLs.
170
+
141
171
## Directory Structure
142
172
-`data/`: Contains ShakeMap event data.
173
+
-`data_storage/`: Optional historical ShakeMap event data served as an internal fallback for `/data/...` URLs.
0 commit comments