Skip to content

Commit

Permalink
mod for kcp
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxuan8282 committed Jun 24, 2017
1 parent fd66f5f commit 1851752
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 10 deletions.
4 changes: 3 additions & 1 deletion frpc/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM nimmis/alpine:3.3
MAINTAINER Yangxuan <[email protected]>

ENV FRP_VERSION=0.11.0
ENV FRP_VERSION=0.12.0

RUN apk --no-cache --update add curl \
&& mkdir -p /tmp/frp \
Expand All @@ -20,6 +20,8 @@ ADD etc /etc

ENV FRP_SERVER_IP=127.0.0.1 \
FRP_SERVER_PORT=7000 \
FRP_KCP_PORT=7000 \
FRP_PROTOCOL=tcp \
PRIVILEGE_TOKEN=youcanusefrpwithDocker \
FRP_TYPE=http \
IF_USE_ENCRYPTION=true \
Expand Down
1 change: 1 addition & 0 deletions frpc/amd64/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
environment:
- FRP_SERVER_IP=YOUR_FRP_SERVER_IP_HERE
- PRIVILEGE_TOKEN=TOKEN_HERE
#- FRP_PROTOCOL=kcp

networks:
default:
Expand Down
1 change: 1 addition & 0 deletions frpc/amd64/etc/frp/frpc.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
server_addr = $FRP_SERVER_IP
server_port = $FRP_SERVER_PORT
privilege_token = $PRIVILEGE_TOKEN
protocol = $FRP_PROTOCOL

[frp_dashboard]
type = http
Expand Down
1 change: 1 addition & 0 deletions frpc/amd64/etc/frp/frpc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
server_addr = {{ .Env.FRP_SERVER_IP }}
server_port = {{ .Env.FRP_SERVER_PORT }}
privilege_token = {{ .Env.PRIVILEGE_TOKEN }}
protocol = {{ .Env.FRP_PROTOCOL }}

# uncomment this block to visit frp dashboard, and you need pass ENV when start container
# [frp_dashboard]
Expand Down
4 changes: 3 additions & 1 deletion frpc/armhf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM pipill/armhf-nimmis-alpine:3.3
MAINTAINER Yangxuan <[email protected]>

ENV FRP_VERSION=0.11.0
ENV FRP_VERSION=0.12.0

RUN [ "cross-build-start" ]

Expand All @@ -24,6 +24,8 @@ ADD etc /etc

ENV FRP_SERVER_IP=127.0.0.1 \
FRP_SERVER_PORT=7000 \
FRP_KCP_PORT=7000 \
FRP_PROTOCOL=tcp \
PRIVILEGE_TOKEN=youcanusefrpwithDocker \
FRP_TYPE=http \
IF_USE_ENCRYPTION=true \
Expand Down
1 change: 1 addition & 0 deletions frpc/armhf/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
environment:
- FRP_SERVER_IP=YOUR_FRP_SERVER_IP_HERE
- PRIVILEGE_TOKEN=TOKEN_HERE
#- FRP_PROTOCOL=kcp

networks:
default:
Expand Down
1 change: 1 addition & 0 deletions frpc/armhf/etc/frp/frpc.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
server_addr = $FRP_SERVER_IP
server_port = $FRP_SERVER_PORT
privilege_token = $PRIVILEGE_TOKEN
protocol = $FRP_PROTOCOL

[frp_dashboard]
type = http
Expand Down
1 change: 1 addition & 0 deletions frpc/armhf/etc/frp/frpc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
server_addr = {{ .Env.FRP_SERVER_IP }}
server_port = {{ .Env.FRP_SERVER_PORT }}
privilege_token = {{ .Env.PRIVILEGE_TOKEN }}
protocol = {{ .Env.FRP_PROTOCOL }}

# uncomment this block to visit frp dashboard, and you need pass ENV when start container
# [frp_dashboard]
Expand Down
1 change: 1 addition & 0 deletions frps/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ COPY frps run_frps /usr/bin/
EXPOSE 80 7000 7500

ENV BIND_PORT="7000" \
KCP_BIND_PORT="7000" \
VHOST_HTTP_PORT="80" \
PRIVILEGE_TOKEN="youcanusefrpwithDocker" \
FRP_DASHBOARD_PORT="7500" \
Expand Down
1 change: 1 addition & 0 deletions frps/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
ports:
- "80:80"
- "7000:7000"
#- "7000:7000/udp"
- "7500:7500"

environment:
Expand Down
Binary file modified frps/frps
Binary file not shown.
8 changes: 0 additions & 8 deletions frps/frps.ini.default

This file was deleted.

1 change: 1 addition & 0 deletions frps/run_frps
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ if ! [ -f /etc/frp/frps.ini ]; then
echo "# frps.ini
[common]
bind_port = $BIND_PORT
kcp_bind_port = $KCP_BIND_PORT
vhost_http_port = $VHOST_HTTP_PORT
privilege_token = $PRIVILEGE_TOKEN
dashboard_port = $FRP_DASHBOARD_PORT
Expand Down

0 comments on commit 1851752

Please sign in to comment.