-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathhnw.env.example
More file actions
60 lines (47 loc) · 2.3 KB
/
Copy pathhnw.env.example
File metadata and controls
60 lines (47 loc) · 2.3 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
50
51
52
53
54
55
56
57
58
59
60
# HubNet Web deployment config — the single source of truth for one deployment.
#
# Copy to `hnw.env`, edit for the target deployment, and source it before launch:
#
# set -a; . ./hnw.env; set +a
# sbt run # (or the staged launcher)
#
# The server reads these at startup and also serves the client-facing values to the
# browser at /js/config.js. Anything left unset falls back to a local-dev default,
# so for plain local development you can skip sourcing this file entirely.
#
# The values below are the PRODUCTION settings; comments note the dev/staging values.
# ----- Server bindings -----
# Host/interface to bind. dev: localhost prod: hubnetweb.org
HNW_INTERFACE=hubnetweb.org
# HTTP port. Plain HTTP when no keystore is set, otherwise the HTTP->HTTPS
# redirect listener. dev: 8080 prod: 80
HNW_HTTP_PORT=80
# HTTPS port (only used when a keystore is configured).
# staging: 8443 prod: 443
HNW_HTTPS_PORT=443
# PKCS12 TLS keystore path. LEAVE UNSET to run plain HTTP with no TLS (local dev).
# When set, the app serves HTTPS and redirects HTTP to it.
# prod/staging: /root/tls/hubnetweb.org.p12
HNW_KEYSTORE_PATH=/root/tls/hubnetweb.org.p12
# Keystore password (empty if the keystore has none).
HNW_KEYSTORE_PASSWORD=
# ----- Client config (served to the browser at /js/config.js) -----
# Public host the browser uses. dev: localhost prod: hubnetweb.org
HNW_ROOT=hubnetweb.org
# Galapagos protocol/port as seen by the browser.
# dev: http/9000 prod: https/9001 staging: https/9101
HNW_GALA_PROTO=https
HNW_GALA_PORT=9001
# WebSocket protocol. dev: ws prod: wss
HNW_WS_PROTO=wss
# Public port for HubNet Web itself. "" means the standard port (80/443).
# dev: 8080 prod: "" staging: 8443
HNW_PUBLIC_PORT=
# STUN/TURN server. The creds are NOT secret — they are sent to every client.
# dev host: localhost
HNW_TURN_HOST=hubnetweb.org
HNW_TURN_USER=guest
HNW_TURN_PASS=mycoolpassword
# Google Analytics measurement id. Leave empty to disable analytics entirely
# (dev/staging never report to the production property). prod: G-M4DC4ZCH64
HNW_GA_ID=