mirror of
https://github.com/Such-Software/wowcheckout.git
synced 2026-10-17 05:51:45 +02:00
Fork xmrcheckout for Wownero (WOW)
Minimal changes from upstream xmrcheckout to support Wownero: - Rate provider: Nonlogs WOW-BTC via Kraken BTC/USD - Subaddress derivation: Wownero network byte overrides (53/63/54) - Payment URI scheme: wownero: - Dockerfile: Wownero binaries from Codeberg - Display text: Monero→Wownero, XMR→WOW throughout UI - Default daemon: 192.168.88.235:34568 - Added wownero-logo.svg File and folder structure kept identical to upstream for easy sync.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
ARG MONERO_VERSION=0.11.3.0
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends ca-certificates curl bzip2 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN set -eux; \
|
||||
curl -fsSL -o /tmp/wownero.tar.bz2 \
|
||||
"https://codeberg.org/wownero/wownero/releases/download/v${MONERO_VERSION}/wownero-x86_64-linux-gnu-v${MONERO_VERSION}.tar.bz2"; \
|
||||
tar -xjf /tmp/wownero.tar.bz2 -C /tmp; \
|
||||
cp /tmp/wownero-*/wownerod /usr/local/bin/; \
|
||||
cp /tmp/wownero-*/wownero-wallet-rpc /usr/local/bin/; \
|
||||
rm -rf /tmp/wownero* /tmp/wownero.tar.bz2
|
||||
|
||||
COPY entrypoint.sh /usr/local/bin/monero-wallet-rpc-entrypoint
|
||||
RUN chmod +x /usr/local/bin/monero-wallet-rpc-entrypoint
|
||||
|
||||
EXPOSE 34568 18083
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/monero-wallet-rpc-entrypoint"]
|
||||
@@ -0,0 +1,42 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
normalize_address() {
|
||||
value="$1"
|
||||
if [ -z "$value" ]; then
|
||||
return
|
||||
fi
|
||||
case "$value" in
|
||||
http://*)
|
||||
value="${value#http://}"
|
||||
;;
|
||||
https://*)
|
||||
value="${value#https://}"
|
||||
;;
|
||||
esac
|
||||
value="${value%%/*}"
|
||||
printf '%s' "$value"
|
||||
}
|
||||
|
||||
args=""
|
||||
while [ "$#" -gt 0 ]; do
|
||||
case "$1" in
|
||||
--daemon-address)
|
||||
shift
|
||||
normalized="$(normalize_address "$1")"
|
||||
args="$args --daemon-address $normalized"
|
||||
;;
|
||||
--daemon-address=*)
|
||||
value="${1#--daemon-address=}"
|
||||
normalized="$(normalize_address "$value")"
|
||||
args="$args --daemon-address=$normalized"
|
||||
;;
|
||||
*)
|
||||
args="$args $1"
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
exec $args
|
||||
@@ -0,0 +1,12 @@
|
||||
FROM postgres:16-alpine
|
||||
|
||||
RUN apk add --no-cache bash
|
||||
|
||||
COPY backup.sh /usr/local/bin/backup.sh
|
||||
COPY pg_backup.cron /etc/cron.d/pg_backup
|
||||
|
||||
RUN chmod +x /usr/local/bin/backup.sh \
|
||||
&& chmod 0644 /etc/cron.d/pg_backup \
|
||||
&& crontab /etc/cron.d/pg_backup
|
||||
|
||||
CMD ["crond", "-f", "-l", "8"]
|
||||
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
: "${POSTGRES_HOST:?}"
|
||||
: "${POSTGRES_USER:?}"
|
||||
: "${POSTGRES_PASSWORD:?}"
|
||||
: "${POSTGRES_DB:?}"
|
||||
|
||||
backup_retention_days="${BACKUP_RETENTION_DAYS:-7}"
|
||||
|
||||
export PGPASSWORD="$POSTGRES_PASSWORD"
|
||||
|
||||
backup_dir="/backups"
|
||||
timestamp="$(date +%Y%m%d_%H%M%S)"
|
||||
backup_path="${backup_dir}/${POSTGRES_DB}_${timestamp}.dump"
|
||||
|
||||
mkdir -p "$backup_dir"
|
||||
|
||||
pg_dump -h "$POSTGRES_HOST" -U "$POSTGRES_USER" -d "$POSTGRES_DB" -F c -f "$backup_path"
|
||||
|
||||
find "$backup_dir" -type f -name "*.dump" -mtime "+${backup_retention_days}" -delete
|
||||
@@ -0,0 +1 @@
|
||||
0 * * * * /usr/local/bin/backup.sh >> /var/log/pg_backup.log 2>&1
|
||||
Reference in New Issue
Block a user