chore: pgserve -> pgmap

This commit is contained in:
rkonfj 2024-03-28 21:07:45 +08:00
parent c8568ed442
commit 32b92f6b63
2 changed files with 6 additions and 6 deletions

View File

@ -4,9 +4,9 @@ WORKDIR /peerguard
ARG version=unknown
ARG githash=unknown
RUN go build -ldflags "-s -w -X 'main.Version=$version' -X 'main.Commit=$githash'" ./cmd/pgcli
RUN go build -ldflags "-s -w -X 'main.Version=$version' -X 'main.Commit=$githash'" ./cmd/pgserve
RUN go build -ldflags "-s -w -X 'main.Version=$version' -X 'main.Commit=$githash'" ./cmd/pgmap
FROM alpine:3.19
WORKDIR /root
COPY --from=builder /peerguard/pgcli /usr/bin/
COPY --from=builder /peerguard/pgserve /usr/bin/
COPY --from=builder /peerguard/pgmap /usr/bin/

View File

@ -3,7 +3,7 @@
Another p2p network library in Go
## Features
- Elegantly simple architecture (pgcli & pgserve & OpenID Connect)
- Elegantly simple architecture (pgcli & pgmap & OpenID Connect)
- NAT traversal with high success rate (STUN & UPnP & PortScan)
- Full support for IPv4/IPv6 dual stack
- Easy-to-use library (net.PacketConn)
@ -13,13 +13,13 @@ Another p2p network library in Go
## Get Started
### Deploy the peermap server
#### 1. Run the pgserve daemon
#### 1. Run the pgmap daemon
```
$ pgserve -l 127.0.0.1:9987 --secret-key 5172554832d76672d1959a5ac63c5ab9 \
$ pgmap -l 127.0.0.1:9987 --secret-key 5172554832d76672d1959a5ac63c5ab9 \
--stun stun.qq.com:3478 --stun stun.miwifi.com:3478
```
#### 2. Wrap pgserve as an https server
#### 2. Wrap pgmap as an https server
```
$ caddy reverse-proxy --from https://synf.in/pg --to 127.0.0.1:9987
```