mirror of
https://github.com/Such-Software/wowcheckout.git
synced 2026-10-17 05:51:45 +02:00
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.
22 lines
392 B
Bash
22 lines
392 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
cert_dir="/etc/nginx/certs"
|
|
cert_path="${cert_dir}/dev.crt"
|
|
key_path="${cert_dir}/dev.key"
|
|
|
|
if [ ! -f "$cert_path" ] || [ ! -f "$key_path" ]; then
|
|
mkdir -p "$cert_dir"
|
|
rm -f "$cert_path" "$key_path"
|
|
openssl req \
|
|
-x509 \
|
|
-nodes \
|
|
-newkey rsa:2048 \
|
|
-days 365 \
|
|
-keyout "$key_path" \
|
|
-out "$cert_path" \
|
|
-subj "/CN=localhost"
|
|
fi
|
|
|
|
exec "$@"
|