Repository navigation
Expand file tree
/
Copy pathenv-localhost
More file actions
68 lines (53 loc) · 2.32 KB
/
Copy pathenv-localhost
File metadata and controls
68 lines (53 loc) · 2.32 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
61
62
63
64
65
66
67
68
# Source this file first of all.
#
# Inspired by https://www.baeldung.com/linux/nginx-config-environment-variables.
# Due to the lack of conditions in Docker compose file, separate docker compose files are needed for separate environments.
export COMPOSE_FILE=none
# --- All variables below have TV_ prefixes, to avoid clashes with other environment variable names (TV stands for Template Variable).
# In templates, use ${TV_DOLLAR} as a replacement for the normal $ sign where necessary
# (as explained in https://www.baeldung.com/linux/nginx-config-environment-variables)
export TV_DOLLAR="$"
# Filename of last sourced environment variables file
export TV_ENVVARS_FILE=env-localhost
# --- for all services XXX below:
# TV_XXX: the short name (used in other variables)
# TV_XXX_HOST_PORT: the port used in the host network
# TV_XXX_CONTAINER_PORT: the port used in the container
# TV_XXX_BASE_URL: the baseURL
# The Solid Community Servers
export TV_CSS1=css1
export TV_CSS1_HOST_PORT=3001
export TV_CSS1_CONTAINER_PORT=3001
export TV_CSS1_BASE_URL=http://localhost:${TV_CSS1_HOST_PORT}
export TV_CSS2=css2
export TV_CSS2_HOST_PORT=3000
export TV_CSS2_CONTAINER_PORT=3000
export TV_CSS2_BASE_URL=http://localhost:${TV_CSS2_HOST_PORT}
# The Viewer 1 (Miravi scenario 1)
export TV_VIEWER1=viewer1
export TV_VIEWER1_HOST_PORT=5174
export TV_VIEWER1_CONTAINER_PORT=5174
export TV_VIEWER1_BASE_URL=http://localhost:${TV_VIEWER1_HOST_PORT}
export TV_CYPRESS_BASE_URL=${TV_VIEWER1_BASE_URL}
# The Viewer 3 (Miravi-uma scenario 3)
export TV_VIEWER2=viewer2
export TV_VIEWER2_HOST_PORT=5175
export TV_VIEWER2_CONTAINER_PORT=5175
export TV_VIEWER2_BASE_URL=http://localhost:${TV_VIEWER2_HOST_PORT}
# The aggregator
export TV_AGGREGATOR=aggregator
export TV_AGGREGATOR_HOST_PORT=7000
export TV_AGGREGATOR_CONTAINER_PORT=7000
export TV_AGGREGATOR_BASE_URL=http://localhost:${TV_AGGREGATOR_HOST_PORT}
# The UMA server
export TV_UMA=uma
export TV_UMA_HOST_PORT=4000
export TV_UMA_CONTAINER_PORT=4000
export TV_UMA_BASE_URL=http://localhost:${TV_UMA_HOST_PORT}/uma
# The LOAMA server
export TV_LOAMA=loama
export TV_LOAMA_HOST_PORT=9000
export TV_LOAMA_CONTAINER_PORT=9000
export TV_LOAMA_BASE_URL=http://localhost:${TV_LOAMA_HOST_PORT}
export TV_LOAMA_DEFAULT_IDP=${TV_CSS2_BASE_URL}
export TV_LOAMA_DEFAULT_AUTHORIZATION_SERVER=${TV_UMA_BASE_URL}