File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ RUN yarn --immutable
66ARG REACT_APP_COMMIT_ID=test
77ARG REACT_APP_ENV=production
88ARG REACT_APP_EDITION=community
9- RUN PUBLIC_URL="." yarn build
9+ RUN yarn build
1010
1111FROM nginx:alpine-slim
1212LABEL maintainer="openblocks"
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ services:
2727 environment :
2828 UID : " 9001"
2929 GID : " 9001"
30- # CONTEXT_PATH: "/"
3130 MONGODB_URI : " mongodb://openblocks:secret123@mongodb/openblocks?authSource=admin"
3231 REDIS_URL : " redis://redis:6379"
3332 ENCRYPTION_PASSWORD : " openblocks.dev"
@@ -46,7 +45,6 @@ services:
4645 environment :
4746 UID : " 9001"
4847 GID : " 9001"
49- # CONTEXT_PATH: "/"
5048 OPENBLOCKS_SERVER_URL : " http://openblocks-backend:8080"
5149 restart : unless-stopped
5250 depends_on :
Original file line number Diff line number Diff line change @@ -34,27 +34,27 @@ http {
3434 root /openblocks-client;
3535
3636
37- location __CONTEXT_PATH__ {
37+ location / {
3838 try_files $uri /index .html;
3939
4040 if ( $request_filename ~ * .*.( html|htm) $) {
4141 add_header Cache-Control no-cache;
4242 }
4343 }
4444
45- location __CONTEXT_PATH__ /api {
45+ location /api {
4646 proxy_set_header X-Forwarded-Proto $scheme ;
4747 proxy_set_header X-Forwarded-Host $host ;
4848 proxy_pass __OPENBLOCKS_SERVER_URL__;
4949 }
5050
51- location __CONTEXT_PATH__ /oauth2 {
51+ location /oauth2 {
5252 proxy_set_header X-Forwarded-Proto $scheme ;
5353 proxy_set_header X-Forwarded-Host $host ;
5454 proxy_pass __OPENBLOCKS_SERVER_URL__;
5555 }
5656
57- location __CONTEXT_PATH__ /login {
57+ location /login {
5858 proxy_set_header X-Forwarded-Proto $scheme ;
5959 proxy_set_header X-Forwarded-Host $host ;
6060 proxy_pass __OPENBLOCKS_SERVER_URL__;
Original file line number Diff line number Diff line change 1919 {{- end }}
2020 UID : {{ .Values.backend.config.userId | default "9001" | quote }}
2121 GID : {{ .Values.backend.config.groupId | default "9001" | quote }}
22- # CONTEXT_PATH: {{ .Values.ingress.contextPath | default "/" | quote }}
2322 CORS_ALLOWED_DOMAINS : {{ .Values.backend.config.corsAllowedDomains | default "*" | quote }}
2423
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ metadata:
1414data :
1515 UID : {{ .Values.frontend.config.userId | default "9001" | quote }}
1616 GID : {{ .Values.frontend.config.groupId | default "9001" | quote }}
17- # CONTEXT_PATH: {{ .Values.ingress.contextPath | default "/" | quote }}
1817 {{- if .Values.frontend.config.backendUrl }}
1918 OPENBLOCKS_SERVER_URL : {{ .Values.frontend.config.backendUrl | trimSuffix "/" | quote }}
2019 {{- else }}
You can’t perform that action at this time.
0 commit comments