-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.plantilla
164 lines (128 loc) · 3.88 KB
/
.env.plantilla
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
#!/bin/sh
# Configuration variables
# Giving precedence to variables specified in command line
# Configuration of smarts contracts
####################################################################
if (test "$TON_NETWORK" = "") then {
export TON_NETWORK=testnet
} fi;
if (test "$MANAGER_SECRET24" = "") then {
export MANAGER_SECRET24="word ... end"
} fi;
if (test "$MANAGER_ADDRESS" = "") then {
export MANAGER_ADDRESS="EQBw2alYCpBVSZsuxBV92akZdfKqU4u8upAU6nyx-Lv6rh81"
} fi;
if (test "$HANDSFORSIERRALEONE_ADDRESS" = "") then {
export HANDSFORSIERRALEONE_ADDRESS="EQBW-VzrrQgUZCKonQm3gHqDFUK42yM33k3g6zMpvvq7tcCj"
} fi;
if (test "$FUND_PERCENTAGE" = "") then {
export FUND_PERCENTAGE=10
} fi;
if (test "$ADSCONTRACT_ADDRESS" = "") then {
export ADSCONTRACT_ADDRESS="EQDpN8C7zvujgd2jS3ppZAriy7HVURqWgPaqCo_ohfFmgifh"
} fi;
if (test "$TONAPI_TOKEN" = "") then {
export TONAPI_TOKEN="useyourshere"
} fi;
# Configuration of Frontend
####################################################################
if (test "$FRONTEND_DIR" = "") then {
# Where to put production build of the frontend
export FRONTEND_DIR=/var/www/htdocs/intercambiadordev/
} fi;
# Configuration for Backends
####################################################################
if (test "$INTERCAMBIADOR_DOMAIN" = "") then {
export INTERCAMBIADOR_DOMAIN="intercambiadordev.pasosdeJesus.org"
} fi;
if (test "$HOST_BACKEND" = "") then {
export HOST_BACKEND="https://${INTERCAMBIADOR_DOMAIN}"
} fi;
# Configuration for Auth Backend
####################################################################
if (test "$PORT_AUTHBACKEND" = "") then {
export PORT_AUTHBACKEND=8081
} fi;
if (test "$PORT_AUTHBACKEND_TLS" = "") then {
export PORT_AUTHBACKEND_TLS=4443
} fi;
# Configuration of Database Backend
####################################################################
if (test "$PORT_DBBACKEND" = "") then {
export PORT_DBBACKEND=8081
} fi;
if (test "$PORT_DBBACKEND_TLS" = "") then {
export PORT_DBBACKEND_TLS=3443
} fi;
# Database
if (test "$BD_SERVIDOR" = "") then {
export BD_SERVIDOR=/var/www/var/run/postgresql
} fi;
if (test "$BD_USUARIO" = "") then {
export BD_USUARIO=copton
} fi;
if (test "$BD_CLAVE" = "") then {
export BD_CLAVE=clave
} fi;
if (test "$BD_DES" = "") then {
export BD_DES=copton_des
} fi;
if (test "$BD_PRUEBA" = "") then {
export BD_PRUEBA=copton_pru
} fi;
if (test "$BD_PRO" = "") then {
export BD_PRO=copton_pro
} fi;
# Application is only API
if (test "$MSIP_API" = "") then {
export MSIP_API=1
} fi;
# To use in development and production modes
if (test "$CONFIG_HOSTS" = "") then {
export CONFIG_HOSTS="${INTERCAMBIADOR_DOMAIN},127.0.0.1"
} fi;
if (test "$RUTA_RELATIVA" = "") then {
export RUTA_RELATIVA="/"
} fi;
if (test "$DIRAP" = "") then {
export DIRAP="$HOME/comp/ton/intercambiador/backend"
} fi;
if (test "$RAILS_ENV" = "") then {
export RAILS_ENV=development
} fi;
# To use in development mode
if (test "$IPDES" = "") then {
export IPDES=127.0.0.1
} fi;
if (test "$PUERTODES" = "") then {
export PUERTODES=3000
} fi;
if (test "$MAQRECVIVA" = "") then { # Recarga viva
export MAQRECVIVA="$CONFIG_HOSTS"
} fi;
if (test "$PUERTORECVIVA" = "") then { # Puerto para recarga viva
export PUERTORECVIVA=4600
} fi;
# To use in production mode with unicorn
if (test "$RC" = "") then {
export RC=intercambiador
} fi;
if (test "$PUERTOUNICORN" = "") then {
export PUERTOUNICORN=3015
} fi;
if (test "$USUARIO_AP" = "") then {
export USUARIO_AP=miusuario
} fi;
# Configuration of engine msip
if (test "$DOAS_7Z" = "") then {
export DOAS_7Z=0 # 1 para usar doas al crear respaldos con 7z
} fi;
if (test "$FORMATO_FECHA" = "") then {
export FORMATO_FECHA='dd/M/yyyy'
} fi;
if (test "$MSIP_RUTA_ANEXOS" = "") then {
export MSIP_RUTA_ANEXOS=${DIRAP}/archivos/anexos
} fi;
if (test "$MSIP_RUTA_VOLCADOS" = "") then {
export MSIP_RUTA_VOLCADOS=${DIRAP}/archivos/bd
} fi;