From cfdea761f783a873abfa65ab7affaf736dce1df9 Mon Sep 17 00:00:00 2001 From: Chris Anderson Date: Mon, 10 Apr 2023 08:55:29 -0500 Subject: [PATCH] Fixes Nginx path (#121) * Fixes Nginx path * Speeds up tests --- .github/workflows/test.yml | 2 -- apps/platform/src/config/queue.ts | 2 ++ apps/ui/docker/nginx/conf.d/default.conf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8da802a5..5ff62fbb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,7 +24,6 @@ jobs: npm run lint test: - needs: lint runs-on: ubuntu-latest strategy: matrix: @@ -78,7 +77,6 @@ jobs: STORAGE_DRIVER: s3 build: - needs: lint runs-on: ubuntu-latest strategy: diff --git a/apps/platform/src/config/queue.ts b/apps/platform/src/config/queue.ts index 0b09dc8b..f0020b2f 100644 --- a/apps/platform/src/config/queue.ts +++ b/apps/platform/src/config/queue.ts @@ -16,6 +16,7 @@ import CampaignSendJob from '../campaigns/CampaignSendJob' import CampaignStateJob from '../campaigns/CampaignStateJob' import CampaignGenerateListJob from '../campaigns/CampaignGenerateListJob' import CampaignInteractJob from '../campaigns/CampaignInteractJob' +import PushJob from '../providers/push/PushJob' export type Queues = Record @@ -32,6 +33,7 @@ export const loadJobs = (queue: Queue) => { queue.register(ListPopulateJob) queue.register(ListStatsJob) queue.register(ProcessListsJob) + queue.register(PushJob) queue.register(TextJob) queue.register(UserPatchJob) queue.register(UserDeleteJob) diff --git a/apps/ui/docker/nginx/conf.d/default.conf b/apps/ui/docker/nginx/conf.d/default.conf index 58a2d94e..6ada0287 100644 --- a/apps/ui/docker/nginx/conf.d/default.conf +++ b/apps/ui/docker/nginx/conf.d/default.conf @@ -7,7 +7,7 @@ server { try_files $uri $uri/ /index.html; } - location ~ ^\/(api|uploads|.well-known|c|o) { + location ~ ^\/(api|uploads|.well-known|c\/|o\/) { proxy_pass http://api:3001; }