Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions sparkwallet/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "sparkwallet",
"name": "Spark wallet",
"url": "some url",
"email": "skp@skp.rocks",
"latest": "0.2.2",
"defaultMountPoint": "sparkwallet"
}
27 changes: 0 additions & 27 deletions sparkwallet/docker-compose.yaml

This file was deleted.

Empty file removed sparkwallet/isCoreApp
Empty file.
60 changes: 60 additions & 0 deletions sparkwallet/versions/0.2.2/candidate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"version": "0.2.2",
"dependencies": [
{
"label": "api",
"version": "v0"
},
{
"label": "bitcoin",
"version": "~0.18.0"
},
{
"label": "lightning",
"version": "~0.7.0"
}
],
"files": [
"cookie",
"docker-compose.yaml",
"test.sh"
],
"isExposed":true,
"port": 9737,
"authorization": {
"roles": [
{
"name": "user",
"description": "regular user",
"autoAssign": true
},
{
"name": "admin",
"description": "admin",
"autoAssign": false
}
],
"acp": [
{
"id": "policies:policy:by:role:user",
"description": "Allow gets for every resource",
"subjects": ["user"],
"effect": "allow",
"resources": [
"/*"
],
"actions": ["get"]
},
{
"id": "policies:policy:by:role:admin",
"description": "Allow admin access to every resource.",
"subjects": ["admin"],
"effect": "allow",
"resources": [
"/*"
],
"actions": ["get", "post", "put", "delete"]
}
]
}
}
File renamed without changes.
41 changes: 41 additions & 0 deletions sparkwallet/versions/0.2.2/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: "3"

# <%= APP_UPSTREAM_HOST %>: Hostname for the upstream into cyphernodes reverse proxy to expose the app to the world
# <%= APP_ID %> use this to avoid conflicts in hostname in case you have multiple services in your app
# if you need those values inside your app, you can pass them in the environment
# container names will be ignored
# Prefix all container names you use with the <%= APP_ID %> to prevent unwanted namespace collision
# between apps. It's very likely if you use a database like redis or mongo that you will name this
# container 'mongo' or 'redis' like every other app developer, so there will be container name
# collisions. Consider using '<%= APP_ID %>_redis' or '<%= APP_ID %>_mongo' instead.
# container names will be checked and if they don't contain the unique part, the app won't be
# able to be installed

services:
# This is the container which will be used as the reverse proxy upstream
<%= APP_UPSTREAM_HOST %>:
command: --no-tls
image: cyphernode/sparkwallet:v0.2.8
volumes:
- "$UNSAFE__CLIGHTNING_PATH:/etc/lightning"
- "$APP_DATA/cookie:/data/spark/cookie"
labels:
- "traefik.docker.network=cyphernodeappsnet"
- "traefik.frontend.redirect.regex=^(.*)/sparkwallet$$"
- "traefik.frontend.redirect.replacement=$$1/sparkwallet/"
- "traefik.frontend.rule=PathPrefix:/sparkwallet;ReplacePathRegex: ^/sparkwallet/(.*) /$$1"
- "traefik.frontend.passHostHeader=true"
- "traefik.frontend.auth.basic.usersFile=/htpasswd/htpasswd"
- "traefik.frontend.headers.customRequestHeaders=X-Access:FoeDdQw5yl7pPfqdlGy3OEk/txGqyJjSbVtffhzs7kc="
- "traefik.enable=true"
- "traefik.port=9737"
environment:
- "APP_UPSTREAM_HOST=<%= APP_UPSTREAM_HOST %>"
- "APP_ID=<%= APP_ID %>"
networks:
- cyphernodeappsnet
restart: always
networks:
cyphernodeappsnet:
external: true

File renamed without changes.
8 changes: 8 additions & 0 deletions welcome/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "welcome",
"name": "The Welcome App",
"url": "some url",
"email": "skp@skp.rocks",
"latest": "0.2.2",
"defaultMountPoint": "welcome"
}
26 changes: 0 additions & 26 deletions welcome/docker-compose.yaml

This file was deleted.

Empty file removed welcome/isCoreApp
Empty file.
50 changes: 50 additions & 0 deletions welcome/versions/0.2.2/candidate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"version": "0.2.2",
"dependencies": [],
"files": [
"config.toml",
"docker-compose.yaml",
"test.sh"
],
"isExposed":true,
"port": 8080,
"authorization": {
"roles": [
{
"name": "user",
"description": "regular user",
"autoAssign": true
},
{
"name": "admin",
"description": "admin",
"autoAssign": false
}
],
"acp": [
{
"id": "policies:policy:by:role:user",
"description": "Allow gets for every resource",
"subjects": ["user"],
"effect": "allow",
"resources": [
"/*"
],
"actions": ["get"]
},
{
"id": "policies:policy:by:role:admin",
"description": "Allow admin access to every resource.",
"subjects": ["admin"],
"effect": "allow",
"resources": [
"/*"
],
"actions": ["get", "post", "put", "delete"]
}
]
}
}



File renamed without changes.
40 changes: 40 additions & 0 deletions welcome/versions/0.2.2/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
version: "3"

# <%= APP_UPSTREAM_HOST %>: Hostname for the upstream into cyphernodes reverse proxy to expose the app to the world
# <%= APP_ID %> use this to avoid conflicts in hostname in case you have multiple services in your app
# if you need those values inside your app, you can pass them in the environment
# container names will be ignored
# Prefix all container names you use with the <%= APP_ID %> to prevent unwanted namespace collision
# between apps. It's very likely if you use a database like redis or mongo that you will name this
# container 'mongo' or 'redis' like every other app developer, so there will be container name
# collisions. Consider using '<%= APP_ID %>_redis' or '<%= APP_ID %>_mongo' instead.
# container names will be checked and if they don't contain the unique part, the app won't be
# able to be installed

services:
# This is the container which will be used as the reverse proxy upstream
<%= APP_UPSTREAM_HOST %>:
environment:
- "CYPHERNODE_URL=$GATEKEEPER_URL"
- "CYPHERNODE_CERT=/certs/cert.pem"
- "APP_DESCRIPTION_FILE=/data/app.json"
- "CONFIG_FILE=/data/config.toml"
- "APP_UPSTREAM_HOST=<%= APP_UPSTREAM_HOST %>"
- "APP_ID=<%= APP_ID %>"
image: cyphernode/app_welcome:v0.2.2
volumes:
- "$GATEKEEPER_CERTS_PATH:/certs"
- "$APP_DATA:/data"
networks:
- cyphernodeappsnet
restart: always
labels:
- "traefik.docker.network=cyphernodeappsnet"
- "traefik.frontend.rule=PathPrefixStrip:/welcome"
- "traefik.frontend.passHostHeader=true"
- "traefik.enable=true"
- "traefik.port=8080"
- "traefik.frontend.auth.basic.usersFile=/htpasswd/htpasswd"
networks:
cyphernodeappsnet:
external: true
File renamed without changes.