-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b7fb455
Showing
6 changed files
with
248 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#### Install [aries](https://github.com/darkchylde/aries-playground) ecosystem | ||
1. Clone repository | ||
2. Create a docker network `docker network create von_von` (If not already created) | ||
3. Run `docker-compose up`, it will serve: | ||
* agent1.localhost | ||
* agent1.swagger.localhost (OPEN API) | ||
* agent2.localhost | ||
* agent2.swagger.localhost (OPEN API) | ||
|
||
*Notes* : By default the agents are pointed to indy ledger hosted at https://indy.igrant.io, | ||
You can always change this to your ledger of choice by updating *GENESIS_URL* environment variable in docker-compose.yml file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
aca-py start \ | ||
-it http 0.0.0.0 80 \ | ||
-ot http \ | ||
-e $ACAPY_ENDPOINT \ | ||
--label $AGENT_NAME \ | ||
--admin 0.0.0.0 8001 \ | ||
--admin-insecure-mode \ | ||
--auto-accept-requests --auto-ping-connection \ | ||
--auto-respond-credential-proposal --auto-respond-credential-offer --auto-respond-credential-request --auto-store-credential \ | ||
--auto-respond-presentation-proposal --auto-respond-presentation-request --auto-verify-presentation \ | ||
--genesis-url $GENESIS_URL \ | ||
--wallet-type indy \ | ||
--wallet-name $AGENT_NAME \ | ||
--webhook-url $WEBHOOK_URL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
version: '3' | ||
services: | ||
nginx: | ||
image: nginx | ||
command: /bin/bash -c "envsubst \"`env | awk -F = '{printf \" $$%s\", $$1}'`\" < /etc/nginx/conf.d/acapy.template > /etc/nginx/conf.d/acapy.conf && exec nginx -g 'daemon off;'" | ||
ports: | ||
- "80:80" | ||
volumes: | ||
- ./nginx/conf.d:/etc/nginx/conf.d | ||
networks: | ||
- von_von | ||
|
||
agent1.localhost: | ||
image: georgejpadayatti/aries-cloudagent:0.5.3 | ||
command: /bin/bash -c "./startup.sh" | ||
container_name: agent1.localhost | ||
environment: | ||
AGENT_NAME: Test-Facility | ||
ACAPY_ENDPOINT: https://agent1.igrant.io | ||
GENESIS_URL: https://indy.igrant.io/genesis | ||
WEBHOOK_URL: http://agent1.webhook:8080 | ||
volumes: | ||
- ./cloud-agent/startup.sh:/home/indy/startup.sh | ||
networks: | ||
- von_von | ||
|
||
agent1.webhook: | ||
image: georgejpadayatti/aries-webhook-interceptor:0.1 | ||
container_name: agent1.webhook | ||
ports: | ||
- 8081:8080 | ||
networks: | ||
- von_von | ||
|
||
agent2.localhost: | ||
image: georgejpadayatti/aries-cloudagent:0.5.3 | ||
command: /bin/bash -c "./startup.sh" | ||
container_name: agent2.localhost | ||
environment: | ||
AGENT_NAME: Data4Life-User | ||
ACAPY_ENDPOINT: https://agent2.igrant.io | ||
GENESIS_URL: https://indy.igrant.io/genesis | ||
WEBHOOK_URL: http://agent2.webhook:8080 | ||
volumes: | ||
- ./cloud-agent/startup.sh:/home/indy/startup.sh | ||
networks: | ||
- von_von | ||
|
||
agent2.webhook: | ||
image: georgejpadayatti/aries-webhook-interceptor:0.1 | ||
container_name: agent2.webhook | ||
ports: | ||
- 8082:8080 | ||
networks: | ||
- von_von | ||
|
||
networks: | ||
von_von: | ||
external: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name agent1.localhost; | ||
|
||
location / { | ||
proxy_pass http://agent1.localhost; | ||
|
||
add_header 'Access-Control-Allow-Origin' '*'; | ||
add_header 'Access-Control-Allow-Credentials' 'true'; | ||
add_header 'Access-Control-Allow-Headers' '*'; | ||
add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH'; | ||
} | ||
} | ||
|
||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name agent1.swagger.localhost; | ||
|
||
location / { | ||
proxy_pass http://agent1.localhost:8001; | ||
|
||
add_header 'Access-Control-Allow-Origin' '*'; | ||
add_header 'Access-Control-Allow-Credentials' 'true'; | ||
add_header 'Access-Control-Allow-Headers' '*'; | ||
add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH'; | ||
} | ||
} | ||
|
||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name agent2.localhost; | ||
|
||
location / { | ||
proxy_pass http://agent2.localhost; | ||
|
||
add_header 'Access-Control-Allow-Origin' '*'; | ||
add_header 'Access-Control-Allow-Credentials' 'true'; | ||
add_header 'Access-Control-Allow-Headers' '*'; | ||
add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH'; | ||
} | ||
} | ||
|
||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name agent2.swagger.localhost; | ||
|
||
location / { | ||
proxy_pass http://agent2.localhost:8001; | ||
|
||
add_header 'Access-Control-Allow-Origin' '*'; | ||
add_header 'Access-Control-Allow-Credentials' 'true'; | ||
add_header 'Access-Control-Allow-Headers' '*'; | ||
add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name agent1.localhost; | ||
|
||
location / { | ||
proxy_pass http://agent1.localhost; | ||
|
||
add_header 'Access-Control-Allow-Origin' '*'; | ||
add_header 'Access-Control-Allow-Credentials' 'true'; | ||
add_header 'Access-Control-Allow-Headers' '*'; | ||
add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH'; | ||
} | ||
} | ||
|
||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name agent1.swagger.localhost; | ||
|
||
location / { | ||
proxy_pass http://agent1.localhost:8001; | ||
|
||
add_header 'Access-Control-Allow-Origin' '*'; | ||
add_header 'Access-Control-Allow-Credentials' 'true'; | ||
add_header 'Access-Control-Allow-Headers' '*'; | ||
add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH'; | ||
} | ||
} | ||
|
||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name agent2.localhost; | ||
|
||
location / { | ||
proxy_pass http://agent2.localhost; | ||
|
||
add_header 'Access-Control-Allow-Origin' '*'; | ||
add_header 'Access-Control-Allow-Credentials' 'true'; | ||
add_header 'Access-Control-Allow-Headers' '*'; | ||
add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH'; | ||
} | ||
} | ||
|
||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name agent2.swagger.localhost; | ||
|
||
location / { | ||
proxy_pass http://agent2.localhost:8001; | ||
|
||
add_header 'Access-Control-Allow-Origin' '*'; | ||
add_header 'Access-Control-Allow-Credentials' 'true'; | ||
add_header 'Access-Control-Allow-Headers' '*'; | ||
add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name localhost; | ||
|
||
#charset koi8-r; | ||
#access_log /var/log/nginx/host.access.log main; | ||
|
||
location / { | ||
root /usr/share/nginx/html; | ||
index index.html index.htm; | ||
} | ||
|
||
#error_page 404 /404.html; | ||
|
||
# redirect server error pages to the static page /50x.html | ||
# | ||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root /usr/share/nginx/html; | ||
} | ||
|
||
# proxy the PHP scripts to Apache listening on 127.0.0.1:80 | ||
# | ||
#location ~ \.php$ { | ||
# proxy_pass http://127.0.0.1; | ||
#} | ||
|
||
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 | ||
# | ||
#location ~ \.php$ { | ||
# root html; | ||
# fastcgi_pass 127.0.0.1:9000; | ||
# fastcgi_index index.php; | ||
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; | ||
# include fastcgi_params; | ||
#} | ||
|
||
# deny access to .htaccess files, if Apache's document root | ||
# concurs with nginx's one | ||
# | ||
#location ~ /\.ht { | ||
# deny all; | ||
#} | ||
} | ||
|