Skip to content

Commit

Permalink
added nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishwas1 committed Nov 7, 2023
1 parent 0b656a5 commit e330adc
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
36 changes: 36 additions & 0 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

worker_processes 1;

events {
worker_connections 1024;
}


http {
include mime.types;
default_type application/octet-stream;

sendfile on;
keepalive_timeout 65;

server {
listen 8080;
server_name localhost *.localhost;

set $subdomain "";
if ($host ~ ^(.*)\.localhost$) {
set $subdomain $1;
}

location / {
proxy_pass http://api.entity.id:3001;
proxy_set_header X-Subdomain $subdomain;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
include servers/*;
}
5 changes: 3 additions & 2 deletions src/edv/services/edvClientManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,16 @@ export class EdvClientManger implements IEdvClientManager {
},
];

const EDV_BASE_URL = this.config.get('EDV_BASE_URL');
this.vault = new HypersignEdvClientEd25519VerificationKey2020({
keyResolver: this.keyResolver,
url: this.config.get('EDV_BASE_URL'),
url: EDV_BASE_URL,
ed25519VerificationKey2020: ed25519,
x25519KeyAgreementKey2020: x25519,
});

const config = {
url: this.config.get('EDV_BASE_URL'),
url: EDV_BASE_URL,
keyAgreementKey,
controller: this.vaultWallet.authenticationKey.id,
edvId: this.edvId
Expand Down

0 comments on commit e330adc

Please sign in to comment.