forked from schulterklopfer/cyphernode_welcome
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from SatoshiPortal/releases/v0.2.0
Releases/v0.2.0
- Loading branch information
Showing
14 changed files
with
531 additions
and
63 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,32 @@ | ||
FROM golang:1.11.6-alpine3.8 as builder | ||
|
||
RUN apk add git | ||
|
||
RUN mkdir -p /go/src/cyphernode_welcome | ||
|
||
ADD cnAuth /go/src/cyphernode_welcome/cnAuth | ||
COPY main.go /go/src/cyphernode_welcome | ||
|
||
WORKDIR /go/src/cyphernode_welcome | ||
|
||
RUN go get | ||
|
||
RUN go build main.go | ||
RUN chmod +x /go/src/cyphernode_welcome/main | ||
|
||
FROM alpine:3.8 | ||
|
||
RUN apk add ca-certificates | ||
|
||
RUN mkdir -p /app | ||
RUN mkdir -p /data | ||
|
||
COPY --from=builder /go/src/cyphernode_welcome/main /app/cyphernode_welcome | ||
ADD static /app/static | ||
ADD templates /app/templates | ||
|
||
ENV PATH=$PATH:/app/ | ||
|
||
WORKDIR /app/ | ||
|
||
CMD ["cyphernode_welcome"] |
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
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
[server] | ||
listen = "0.0.0.0:8080" | ||
index_template = "templates/index.html" | ||
path_prefix = "/welcome" | ||
|
||
[gatekeeper] | ||
status_url = "http://localhost:3333/status" | ||
key_label = "001" | ||
key_file = "data/keys.properties" | ||
cert_file = "data/cert.pem" | ||
|
||
|
||
|
||
status_url = "https://gatekeeper/v0/getblockchaininfo" | ||
installation_info_url = "https://gatekeeper/s/stats/installation.json" | ||
config_archive_url = "https://gatekeeper/s/stats/config.7z" | ||
certs_url = "https://gatekeeper/s/stats/client.7z" | ||
|
||
key_label = "000" | ||
key_file = "/data/keys.properties" | ||
cert_file = "/data/cert.pem" |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
kapi_id="001";kapi_key="a27f9e73fdde6a5005879c273c9aea5e8d917eec77bbdfd73272c0af9b4c6b7a";kapi_groups="watcher";eval ugroups_${kapi_id}=${kapi_groups};eval ukey_${kapi_id}=${kapi_key} | ||
kapi_id="002";kapi_key="fe58ddbb66d7302a7087af3242a98b6326c51a257f5eab1c06bb8cc02e25890d";kapi_groups="watcher,spender";eval ugroups_${kapi_id}=${kapi_groups};eval ukey_${kapi_id}=${kapi_key} | ||
kapi_id="003";kapi_key="f0b8bb52f4c7007938757bcdfc73b452d6ce08cc0c660ce57c5464ae95f35417";kapi_groups="watcher,spender,admin";eval ugroups_${kapi_id}=${kapi_groups};eval ukey_${kapi_id}=${kapi_key} | ||
kapi_id="000";kapi_key="6ddd3bbeb6daf9c643113def55e86893d94916668a5cadd892ee524ba4a519a1";kapi_groups="stats";eval ugroups_${kapi_id}=${kapi_groups};eval ukey_${kapi_id}=${kapi_key} | ||
kapi_id="001";kapi_key="256b2061bf06b4c046b8e279596df598a35a42689e21e997e9ac6ac20e3e1522";kapi_groups="stats,watcher";eval ugroups_${kapi_id}=${kapi_groups};eval ukey_${kapi_id}=${kapi_key} | ||
kapi_id="002";kapi_key="9822479eb361c573bc96c0936fb5fa30d0f14e6d44ed6d9219856d123e7b47ce";kapi_groups="stats,watcher,spender";eval ugroups_${kapi_id}=${kapi_groups};eval ukey_${kapi_id}=${kapi_key} | ||
kapi_id="003";kapi_key="9538760ae5cdc195f4f32f867475c4e3b13894cd859b0c2d6e3c8d729b3217c8";kapi_groups="stats,watcher,spender,admin";eval ugroups_${kapi_id}=${kapi_groups};eval ukey_${kapi_id}=${kapi_key} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.