-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from shenyunet/master
更新到最新版本并支持toml
- Loading branch information
Showing
6 changed files
with
57 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
FROM alpine:3.8 | ||
LABEL maintainer="Stille <[email protected]>" | ||
|
||
ENV VERSION 0.51.3 | ||
ENV VERSION 0.54.0 | ||
ENV TZ=Asia/Shanghai | ||
WORKDIR / | ||
|
||
|
@@ -18,10 +18,10 @@ RUN if [ "$(uname -m)" = "x86_64" ]; then export PLATFORM=amd64 ; \ | |
&& tar xzf frp_${VERSION}_linux_${PLATFORM}.tar.gz \ | ||
&& cd frp_${VERSION}_linux_${PLATFORM} \ | ||
&& mkdir /frp \ | ||
&& mv frps frps.ini /frp \ | ||
&& mv frps frps.toml /frp \ | ||
&& cd .. \ | ||
&& rm -rf *.tar.gz frp_${VERSION}_linux_${PLATFORM} | ||
|
||
VOLUME /frp | ||
|
||
CMD /frp/frps -c /frp/frps.ini | ||
CMD /frp/frps -c /frp/frps.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
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,34 @@ | ||
bindAddr = "0.0.0.0" | ||
bindPort = 7000 | ||
#kcpBindPort = 7000 | ||
quicBindPort = 7000 | ||
|
||
transport.maxPoolCount = 2000 | ||
transport.tcpMux = true | ||
transport.tcpMuxKeepaliveInterval = 60 | ||
transport.tcpKeepalive = 7200 | ||
transport.tls.force = false | ||
|
||
webServer.addr = "0.0.0.0" | ||
webServer.port = 7500 | ||
webServer.user = "admin" | ||
webServer.password = "admin" | ||
webServer.pprofEnable = false | ||
|
||
log.to = "./frps.log" | ||
# trace, debug, info, warn, error | ||
log.level = "error" | ||
log.maxDays = 1 | ||
log.disablePrintColor = false | ||
|
||
auth.method = "token" | ||
auth.token = "admin" | ||
|
||
# Only allow frpc to bind ports you list. By default, there won't be any limit. | ||
allowPorts = [ | ||
{ start = 1, end = 65535 } | ||
] | ||
|
||
maxPortsPerClient = 0 | ||
udpPacketSize = 1500 | ||
natholeAnalysisDataReserveHours = 24 |
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