Skip to content

Commit

Permalink
plumbing
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkmin committed Nov 27, 2023
1 parent 252d565 commit 9c19728
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
directory: ["recovery", "export"]
directory: ["recovery", "export", "auth"]

steps:
- name: Checkout
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,12 @@ jobs:
projectName: export
directory: export
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

- name: Publish Auth
uses: cloudflare/pages-action@f0a1cd58cd66095dee69bfa18fa5efd1dde93bca #v1.5.0
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: auth
directory: auth
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ COPY nginx.conf /etc/nginx/nginx.conf

COPY recovery /usr/share/nginx/recovery
COPY export /usr/share/nginx/export
COPY auth /usr/share/nginx/auth

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: auth
containerPort: 8082
livenessProbe:
httpGet:
path: /health
Expand All @@ -43,3 +45,6 @@ spec:
- name: http-export
port: 8081
targetPort: export
- name: http-auth
port: 8082
targetPort: auth
7 changes: 6 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ http {
# Send access logs to stdout for logging
access_log /dev/stdout main;

# Custom server blocks to serve recovery and export frames on separate ports
# Custom server blocks to serve recovery, export, and auth frames on separate ports

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

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

0 comments on commit 9c19728

Please sign in to comment.