This repository has been archived by the owner on Dec 2, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e0a090
commit e99cfea
Showing
14 changed files
with
386 additions
and
29 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
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
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,31 @@ | ||
[global] | ||
pprof = ":6064" | ||
# data center id | ||
dc = "dc1" | ||
|
||
[log] | ||
level = "info" | ||
# level = "debug" | ||
|
||
[nats] | ||
url = "nats://nats:4222" | ||
|
||
[node] | ||
# node id | ||
nid = "sig01" | ||
|
||
[signal.grpc] | ||
#listen ip port | ||
host = "0.0.0.0" | ||
port = "5551" | ||
allow_all_origins = true | ||
# cert= "configs/certs/cert.pem" | ||
# key= "configs/certs/key.pem" | ||
|
||
[signal.jwt] | ||
enabled = false | ||
key_type = "HMAC" # this selects the Signing method https://godoc.org/github.com/dgrijalva/jwt-go#SigningMethod | ||
key = "1q2dGu5pzikcrECJgW3ADfXX3EsmoD99SYvSVCpDsJrAqxou5tUNbHPvkEFI4bTS" | ||
|
||
[signal.svc] | ||
services = ["sfu","biz","avp"] |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[global] | ||
pprof = ":6060" | ||
pprof = ":6064" | ||
# data center id | ||
dc = "dc1" | ||
|
||
|
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
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
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,25 @@ | ||
FROM golang:1.14.13-stretch | ||
|
||
ENV GO111MODULE=on | ||
|
||
WORKDIR $GOPATH/src/github.com/pion/ion | ||
|
||
COPY go.mod go.sum ./ | ||
RUN cd $GOPATH/src/github.com/pion/ion && go mod download | ||
|
||
COPY pkg/ $GOPATH/src/github.com/pion/ion/pkg | ||
COPY cmd/ $GOPATH/src/github.com/pion/ion/cmd | ||
COPY proto/ $GOPATH/src/github.com/pion/ion/proto | ||
|
||
WORKDIR $GOPATH/src/github.com/pion/ion/cmd/signal | ||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /sig . | ||
|
||
FROM alpine:3.12.1 | ||
|
||
RUN apk --no-cache add ca-certificates | ||
COPY --from=0 /sig /usr/local/bin/sig | ||
|
||
COPY configs/docker/sig.toml /configs/sig.toml | ||
|
||
ENTRYPOINT ["/usr/local/bin/sig"] | ||
CMD ["-c", "/configs/sig.toml"] |
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
Oops, something went wrong.