From b3cba9fb2dd4effdfeaa05a65b12efc537afe189 Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Thu, 3 Mar 2022 11:15:15 +0100 Subject: [PATCH 1/2] Enable CORS on the accounts' endpoints for registering public keys. --- docker/nginx/conf.d/server/server.account | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker/nginx/conf.d/server/server.account b/docker/nginx/conf.d/server/server.account index 77cd9407..127ba4bf 100644 --- a/docker/nginx/conf.d/server/server.account +++ b/docker/nginx/conf.d/server/server.account @@ -35,6 +35,13 @@ location /api/register { proxy_pass http://accounts:3000; } +location /api/user/pubkey/register { + include /etc/nginx/conf.d/include/cors; + + rewrite /api/(.*) /$1 break; + proxy_pass http://accounts:3000; +} + location /api/login { include /etc/nginx/conf.d/include/cors; From c2faec855bf4cf8db91b8fcea66ca46eb3846aae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20Wypch=C5=82o?= Date: Thu, 3 Mar 2022 17:35:51 +0100 Subject: [PATCH 2/2] deploy using skynetpro.net --- .github/workflows/deploy-website.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index dc6058ac..9242c138 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -43,5 +43,7 @@ jobs: uses: skynetlabs/deploy-to-skynet-action@v2 with: upload-dir: packages/website/public + portal-url: https://skynetpro.net + skynet-jwt: ${{ secrets.SKYNET_JWT }} github-token: ${{ secrets.GITHUB_TOKEN }} registry-seed: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && secrets.WEBSITE_REGISTRY_SEED || '' }}