Skip to content

Commit

Permalink
Merge pull request #69 from samply/fix/rustySpotDeployment
Browse files Browse the repository at this point in the history
fix: solved deployment issues with spot
  • Loading branch information
patrickskowronekdkfz authored Mar 20, 2024
2 parents 3bc4167 + d531dc2 commit 537c9c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ TODO
.env
docker-compose.override.yml
*.priv.pem
traefik.yaml
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ services:
- "traefik.enable=true"
- "traefik.http.services.spot.loadbalancer.server.port=8080"
- "traefik.http.middlewares.corsheaders.headers.accesscontrolallowmethods=GET,OPTIONS,POST"
- "traefik.http.middlewares.corsheaders.headers.accesscontrolallowheaders=content-type"
- "traefik.http.middlewares.corsheaders.headers.accesscontrolalloworiginlist=https://${GUI_HOST}"
- "traefik.http.middlewares.corsheaders.headers.accesscontrolallowcredentials=true"
- "traefik.http.middlewares.corsheaders.headers.accesscontrolmaxage=-1"
Expand Down
3 changes: 3 additions & 0 deletions packages/lib/src/classes/spot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ export class Spot {

const eventSource = new EventSource(
`${this.url.toString()}beam/${this.currentTask}?wait_count=${this.sites.length}`,
{
withCredentials: true,
},
);
eventSource.addEventListener("new_result", (message) => {
const response: BeamResult = JSON.parse(message.data);
Expand Down

0 comments on commit 537c9c0

Please sign in to comment.