-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/benjamin-wilson/public-po…
- Loading branch information
Showing
6 changed files
with
69 additions
and
2 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,4 @@ | ||
dist | ||
node_modules | ||
README.md | ||
.vscode |
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,27 @@ | ||
############################ | ||
# Docker build environment # | ||
############################ | ||
|
||
FROM node:18.16.1-bookworm AS build | ||
|
||
WORKDIR /build | ||
|
||
COPY . . | ||
|
||
RUN npm i | ||
RUN npm run build | ||
|
||
############################ | ||
# Docker final environment # | ||
############################ | ||
|
||
FROM caddy:2.7.4-alpine | ||
|
||
EXPOSE 80 | ||
WORKDIR /var/www/html | ||
|
||
COPY --from=build /build/dist/public-pool-ui . | ||
COPY docker/Caddyfile.tpl /etc/Caddyfile.tpl | ||
COPY docker/entrypoint.sh /entrypoint.sh | ||
|
||
CMD ["/bin/sh", "/entrypoint.sh"] |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
http://%%DOMAIN%% { | ||
root * /var/www/html | ||
file_server | ||
log { | ||
output stdout | ||
format %%LOGFORMAT%% | ||
level %%LOGLEVEL%% | ||
} | ||
} |
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,12 @@ | ||
#!/bin/sh | ||
|
||
if [ ! -e "/etc/Caddyfile" ]; then | ||
sed -i "s#%%DOMAIN%%#${DOMAIN:-localhost}#g" /etc/Caddyfile.tpl | ||
sed -i "s#%%LOGLEVEL%%#${LOGLEVEL:-INFO}#g" /etc/Caddyfile.tpl | ||
sed -i "s#%%LOGFORMAT%%#${LOGFORMAT:-json}#g" /etc/Caddyfile.tpl | ||
mv /etc/Caddyfile.tpl /etc/Caddyfile | ||
else | ||
rm -f /etc/Caddyfile.tpl | ||
fi | ||
|
||
exec caddy run --config /etc/Caddyfile |
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 |
---|---|---|
|
@@ -162,7 +162,7 @@ <h4 style="text-align: center;"> Found Blocks</h4> | |
<div class="col-12"> | ||
<div class="card"> | ||
<div class="grid"> | ||
<div class="col-12 md:col-4"> | ||
<div class="col-12 md:col-2"> | ||
<h3>Donate</h3> | ||
<p>Like the project? Consider a donation. </p> | ||
</div> | ||
|
@@ -171,7 +171,7 @@ <h3>Donate</h3> | |
alt="bc1q99n3pu025yyu0jlywpmwzalyhm36tg5u37w20d"> | ||
<div>[email protected]</div> | ||
</div> | ||
<div class="col-12 md:col-4 text-center"> | ||
<div class="col-12 md:col-6 text-center"> | ||
<img style="height: 200px;" src="assets/layout/images/qr-code-onchain.svg" | ||
alt="bc1q99n3pu025yyu0jlywpmwzalyhm36tg5u37w20d"> | ||
<div>bc1q99n3pu025yyu0jlywpmwzalyhm36tg5u37w20d</div> | ||
|