Skip to content

Commit

Permalink
maintain auth and recovery ports separately
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkmin committed Dec 1, 2023
1 parent 1f63a8e commit c0c1476
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ LABEL org.opencontainers.image.source https://github.com/tkhq/frames

COPY nginx.conf /etc/nginx/nginx.conf

# maintain recovery for backwards compatibility
COPY auth /usr/share/nginx/recovery
# maintain recovery for backwards-compatibility
COPY auth /usr/share/nginx/auth
COPY auth /usr/share/nginx/recovery
COPY export /usr/share/nginx/export

EXPOSE 8080/tcp
EXPOSE 8081/tcp
EXPOSE 8082/tcp

CMD ["nginx"]
5 changes: 5 additions & 0 deletions kustomize/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ spec:
containerPort: 8080
- name: export
containerPort: 8081
- name: recovery
containerPort: 8082
livenessProbe:
httpGet:
path: /health
Expand All @@ -43,3 +45,6 @@ spec:
- name: http-export
port: 8081
targetPort: export
- name: http-recovery
port: 8082
targetPort: recovery
8 changes: 7 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ http {
# Send access logs to stdout for logging
access_log /dev/stdout main;

# Custom server blocks to serve auth and export frames on separate ports
# Custom server blocks to serve auth and export frames on separate ports.
# Maintain recovery and auth separately for now for backwards-compatibility.

server {
listen 8080;
Expand All @@ -53,4 +54,9 @@ http {
listen 8081;
root /usr/share/nginx/export;
}

server {
listen 8082;
root /usr/share/nginx/recovery;
}
}

0 comments on commit c0c1476

Please sign in to comment.