-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy path.env.example
More file actions
49 lines (37 loc) · 2.33 KB
/
Copy path.env.example
File metadata and controls
49 lines (37 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Local dev configuration for `yarn dev` / `yarn start`.
# Copy to `.env` (which is gitignored) and adjust as needed. All values are optional.
# --- HTTP server ---
# Sofie serves the webui, the REST API and the DDP websocket from a single HTTP server.
# Port to listen on. Default 3000.
# SOFIE_PORT=3000
# Address to bind to. Default 0.0.0.0 (all interfaces), which is what a deployed instance wants.
# `yarn dev` overrides this to 127.0.0.1, so a dev server is not exposed to the network. Set it here
# to override that, eg to reach your dev server from another machine or a container.
# SOFIE_BIND_ADDRESS=0.0.0.0
# Serve the app under a subpath instead of the root, taken from the url's path.
# eg http://localhost:3000/sofie serves everything under `/sofie`.
# ROOT_URL=http://localhost:3000
# --- Vite dev server ---
# In dev the webui is served by vite (on port 3005), not by the sofie server. Vite proxies the api
# and websocket through to the sofie server, so this is the address to open in a browser.
# Port to listen on. Default 3005.
# SOFIE_VITE_PORT=3005
# Address the vite dev server binds to. Defaults to SOFIE_BIND_ADDRESS if that is set, otherwise
# 127.0.0.1, so a dev server is not exposed to the network. Set it here to override just vite, eg
# to reach the dev ui from another machine or a container.
# SOFIE_VITE_BIND_ADDRESS=0.0.0.0
# --- MongoDB ---
# In dev, `yarn dev` spawns its own MongoDB (single-node replica set, required for change
# streams) via mongodb-memory-server.
# It reuses Meteor's existing data dir (meteor/.meteor/local/db), so existing dev data is kept.
# mongod version to run. Default matches the mongod bundled with Meteor 3.4.1, so the existing
# data dir opens cleanly. Avoid setting an OLDER version than what last wrote the data dir.
# MONGO_VERSION=7.0.16
# Port the dev MongoDB listens on. A stable, predictable port so tooling (Compass, mongo shell)
# can always connect to the same address. If the port is in use, the dev script errors out.
# MONGO_PORT=3001
# Logical database name used in the connection URL. Default matches Meteor's dev default.
# MONGO_DEV_DB=meteor
# Set MONGO_URL to use an external MongoDB instead. When set, the dev script does NOT spawn its
# own MongoDB and the variables above are ignored. The server still requires a replica set.
# MONGO_URL=mongodb://127.0.0.1:27017/meteor?replicaSet=rs0