Browse Source

修改swagger文件名字

tags/v4.1.0-dev.11
linfengjun 3 weeks ago
parent
commit
698c6bed32
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      build/application/api-doc/dockerfile
  2. +1
    -1
      deploy/charts/octopus/templates/api-doc.yaml

+ 2
- 2
build/application/api-doc/dockerfile View File

@@ -5,5 +5,5 @@ COPY ./ ./
RUN make api-doc_build

FROM swaggerapi/swagger-ui:v3.52.3
COPY --from=builder /app/server/admin-server/api/v1/swagger.json /usr/share/nginx/html/admin-server.swagger.json
COPY --from=builder /app/server/openai-server/api/v1/swagger.json /usr/share/nginx/html/openai-server.swagger.json
COPY --from=builder /app/server/admin-server/api/v1/swagger.json /usr/share/nginx/html/admin.swagger.json
COPY --from=builder /app/server/openai-server/api/v1/swagger.json /usr/share/nginx/html/openai.swagger.json

+ 1
- 1
deploy/charts/octopus/templates/api-doc.yaml View File

@@ -51,7 +51,7 @@ spec:
mountPath: /etc/localtime
env:
- name: URLS
value: "[{url:\"{{ .Values.ingress.apidocPath }}/admin-server.swagger.json\",name:\"admin\"},{url:\"{{ .Values.ingress.apidocPath }}/openai-server.swagger.json\",name:\"openai\"}]"
value: "[{url:\"{{ .Values.ingress.apidocPath }}/admin.swagger.json\",name:\"admin\"},{url:\"{{ .Values.ingress.apidocPath }}/openai.swagger.json\",name:\"openai\"}]"
ports:
- name: http
containerPort: {{ template "apidoc.targetPort" . }}


Loading…
Cancel
Save