Skip to content

Commit

Permalink
Require gh login
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Dec 19, 2024
1 parent ec07878 commit 3ea01e2
Show file tree
Hide file tree
Showing 13 changed files with 512 additions and 69 deletions.
3 changes: 3 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ export BITCOIN_RPC_USER="polaruser"
export BITCOIN_RPC_PASSWORD="polarpass"
export NETWORK="regtest"
export NSEC="my_nsec"
export JWT_SECRET="my_jwt_secret"
export GITHUB_CLIENT_ID="my_github_client_id"
export GITHUB_CLIENT_SECRET="my_github_client_secret"
207 changes: 174 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
async-trait = "0.1"
anyhow = "1.0.70"
axum = { version = "0.6.20", features = ["macros", "headers"] }
bitcoin-waila = "0.3.0"
Expand All @@ -16,11 +17,13 @@ tonic_openssl_lnd = "0.2.0"
dotenv = "0.15.0"
lnurl-rs = "0.4.0"
hex = "0.4.3"
bitcoincore-rpc = "0.17.0"
bitcoin = "0.30.2"
lightning-invoice = "0.27.0"
tower-http = { version = "0.4.0", features = ["cors"] }
log = "0.4.20"
pretty_env_logger = "0.5.0"
nostr = "0.29.0"
nostr-sdk = "0.29.0"
jsonwebtoken = "9.3.0"
reqwest = "0.11.23"
chrono = "0.4.39"
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
FROM rust:1.76.0 AS builder

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends clang cmake build-essential
# Install build dependencies
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
clang \
cmake \
build-essential \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Copy source code
COPY . .

# Build the application
RUN cargo build --release

ENTRYPOINT ["/bin/bash", "-c", "./target/release/mutinynet-faucet-rs ${FLAGS}"]
Loading

0 comments on commit 3ea01e2

Please sign in to comment.