File tree Expand file tree Collapse file tree 5 files changed +5
-9
lines changed Expand file tree Collapse file tree 5 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ RUN yarn --immutable
6
6
ARG REACT_APP_COMMIT_ID=test
7
7
ARG REACT_APP_ENV=production
8
8
ARG REACT_APP_EDITION=community
9
- RUN PUBLIC_URL="." yarn build
9
+ RUN yarn build
10
10
11
11
FROM nginx:alpine-slim
12
12
LABEL maintainer="openblocks"
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ services:
27
27
environment :
28
28
UID : " 9001"
29
29
GID : " 9001"
30
- # CONTEXT_PATH: "/"
31
30
MONGODB_URI : " mongodb://openblocks:secret123@mongodb/openblocks?authSource=admin"
32
31
REDIS_URL : " redis://redis:6379"
33
32
ENCRYPTION_PASSWORD : " openblocks.dev"
@@ -46,7 +45,6 @@ services:
46
45
environment :
47
46
UID : " 9001"
48
47
GID : " 9001"
49
- # CONTEXT_PATH: "/"
50
48
OPENBLOCKS_SERVER_URL : " http://openblocks-backend:8080"
51
49
restart : unless-stopped
52
50
depends_on :
Original file line number Diff line number Diff line change @@ -34,27 +34,27 @@ http {
34
34
root /openblocks-client;
35
35
36
36
37
- location __CONTEXT_PATH__ {
37
+ location / {
38
38
try_files $uri /index.html;
39
39
40
40
if ($request_filename ~* .*.(html|htm)$) {
41
41
add_header Cache-Control no-cache;
42
42
}
43
43
}
44
44
45
- location __CONTEXT_PATH__ /api {
45
+ location /api {
46
46
proxy_set_header X-Forwarded-Proto $scheme ;
47
47
proxy_set_header X-Forwarded-Host $host ;
48
48
proxy_pass __OPENBLOCKS_SERVER_URL__;
49
49
}
50
50
51
- location __CONTEXT_PATH__ /oauth2 {
51
+ location /oauth2 {
52
52
proxy_set_header X-Forwarded-Proto $scheme ;
53
53
proxy_set_header X-Forwarded-Host $host ;
54
54
proxy_pass __OPENBLOCKS_SERVER_URL__;
55
55
}
56
56
57
- location __CONTEXT_PATH__ /login {
57
+ location /login {
58
58
proxy_set_header X-Forwarded-Proto $scheme ;
59
59
proxy_set_header X-Forwarded-Host $host ;
60
60
proxy_pass __OPENBLOCKS_SERVER_URL__;
Original file line number Diff line number Diff line change 19
19
{{- end }}
20
20
UID : {{ .Values.backend.config.userId | default "9001" | quote }}
21
21
GID : {{ .Values.backend.config.groupId | default "9001" | quote }}
22
- # CONTEXT_PATH: {{ .Values.ingress.contextPath | default "/" | quote }}
23
22
CORS_ALLOWED_DOMAINS : {{ .Values.backend.config.corsAllowedDomains | default "*" | quote }}
24
23
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ metadata:
14
14
data :
15
15
UID : {{ .Values.frontend.config.userId | default "9001" | quote }}
16
16
GID : {{ .Values.frontend.config.groupId | default "9001" | quote }}
17
- # CONTEXT_PATH: {{ .Values.ingress.contextPath | default "/" | quote }}
18
17
{{- if .Values.frontend.config.backendUrl }}
19
18
OPENBLOCKS_SERVER_URL : {{ .Values.frontend.config.backendUrl | trimSuffix "/" | quote }}
20
19
{{- else }}
You can’t perform that action at this time.
0 commit comments