Skip to content

Commit

Permalink
build: billboard deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
hai-ko committed Nov 5, 2023
1 parent bd36c0d commit f56d867
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/billboard/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ services:
- db
- ccip-resolver
environment:
PORT: 8082
PORT: 8083
time: 0
privateKey: ${BILLBOARD_PRIVATE_KEY}
ensNames: '["billboard1.eth"]'
Expand Down
12 changes: 12 additions & 0 deletions docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ http {
proxy_redirect off;
}

location /bb-client {
rewrite ^/bb-client(.*)$ $1 break;
limit_req zone=standardlimit burst=50;
proxy_pass http://backend:8083;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

proxy_redirect off;
}

location /socket.io {
proxy_pass http://backend:8081/socket.io;
proxy_http_version 1.1;
Expand Down
17 changes: 15 additions & 2 deletions packages/cli/profile/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
/* eslint-disable no-console */
import { Command, program } from 'commander';
import { getStorageKeyCreationMessage, createStorageKey } from 'dm3-lib-crypto';
import { createProfileKeys, UserProfile } from 'dm3-lib-profile';
import {
createProfileKeys,
getProfileCreationMessage,
SignedUserProfile,
UserProfile,
} from 'dm3-lib-profile';
import { ethers } from 'ethers';
import { getSanitizedWallet } from '../sanitizer/getSanitizedWallet';
import { stringify } from 'dm3-lib-shared';

const newProfile = async (program: Command) => {
const { profilePk, deliveryService } = program.opts();
Expand Down Expand Up @@ -47,7 +53,14 @@ const newProfile = async (program: Command) => {
);
}

console.log(profile);
const profileCreationMessage = getProfileCreationMessage(
stringify(profile),
);

const profileSig = await profileWallet.signMessage(profileCreationMessage);
const signedProfile: SignedUserProfile = { profile, signature: profileSig };

console.log(signedProfile);
};

export { newProfile };

0 comments on commit f56d867

Please sign in to comment.