forked from woodylan/go-websocket
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
28 changed files
with
336 additions
and
316 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM golang:1.13 AS build-dist | ||
ENV GOPROXY='https://mirrors.aliyun.com/goproxy' | ||
WORKDIR /data/release | ||
COPY . . | ||
RUN go build | ||
|
||
FROM centos:latest as prod | ||
WORKDIR /data/go-websocket | ||
COPY --from=build-dist /data/release/go-websocket ./ | ||
COPY --from=build-dist /data/release/conf /data/go-websocket/conf | ||
|
||
EXPOSE 6000 | ||
|
||
CMD ["/data/go-websocket/go-websocket","-c","./conf/app.ini"] |
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
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,10 @@ | ||
[common] | ||
HttpPort = 6000 | ||
RPCPort = 7000 | ||
# 是否集群,单机则设为false | ||
Cluster = true | ||
# 对称加密key | ||
CryptoKey = Adba723b7fe06819 | ||
|
||
[etcd] | ||
Endpoints = ws_etcd1:2379, ws_etcd2:2379, ws_etcd3:2379 |
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,8 +1,10 @@ | ||
[common] | ||
HttpPort = 6000 | ||
RPCPort = 7000 | ||
# 是否集群,单机则设为false | ||
cluster = false | ||
Cluster = false | ||
# 对称加密key | ||
crypto_key = | ||
CryptoKey = | ||
|
||
[etcd] | ||
host = 127.0.0.1:2379 | ||
Endpoints = |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.