Skip to content

Commit f3370ba

Browse files
committed
Removed references to context path until it's supported.
1 parent 44c1b22 commit f3370ba

File tree

5 files changed

+5
-9
lines changed

5 files changed

+5
-9
lines changed

deploy/docker/Dockerfile.frontend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN yarn --immutable
66
ARG REACT_APP_COMMIT_ID=test
77
ARG REACT_APP_ENV=production
88
ARG REACT_APP_EDITION=community
9-
RUN PUBLIC_URL="." yarn build
9+
RUN yarn build
1010

1111
FROM nginx:alpine-slim
1212
LABEL maintainer="openblocks"

deploy/docker/docker-compose.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

deploy/docker/frontend/nginx.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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__;

deploy/helm/templates/backend/configMap.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@ data:
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

deploy/helm/templates/frontend/configMap.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ metadata:
1414
data:
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 }}

0 commit comments

Comments
 (0)