Skip to content

Commit

Permalink
Default redirect on Ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
joyliu-q committed Sep 27, 2023
1 parent 29e045c commit 2c2fdfe
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions k8s/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ export class MyChart extends PennLabsChart {
{ name: 'REDIS_URL', value: 'redis://office-hours-queue-redis:6379' },
],
},
ingressProps: {
annotations: {
["ingress.kubernetes.io/protocol"]: "https",
["traefik.ingress.kubernetes.io/router.middlewares"]: "default-redict-http@kubernetescrd"
}
},
djangoSettingsModule: 'officehoursqueue.settings.production',
domains: [{ host: domain, paths: ['/api/ws'] }],
});
Expand All @@ -36,6 +42,12 @@ export class MyChart extends PennLabsChart {
{ name: 'REDIS_URL', value: 'redis://office-hours-queue-redis:6379' },
],
},
ingressProps: {
annotations: {
["ingress.kubernetes.io/protocol"]: "https",
["traefik.ingress.kubernetes.io/router.middlewares"]: "default-redict-http@kubernetescrd"
}
},
djangoSettingsModule: 'officehoursqueue.settings.production',
domains: [{ host: domain, paths: ['/api', '/admin', '/assets'] }],
});
Expand Down

1 comment on commit 2c2fdfe

@vercel
Copy link

@vercel vercel bot commented on 2c2fdfe Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

office-hours-queue – ./frontend

office-hours-queue-git-master-ohq.vercel.app
office-hours-queue.vercel.app
office-hours-queue-ohq.vercel.app

Please sign in to comment.