six_docker_002(修正frps,gitea的错误)
This commit is contained in:
@@ -32,16 +32,12 @@ services:
|
|||||||
image: snowdreamtech/frps
|
image: snowdreamtech/frps
|
||||||
container_name: xiao_frps
|
container_name: xiao_frps
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# ports:
|
|
||||||
# - "7000:7000/tcp" # frpc 控制
|
|
||||||
# - "7000:7000/udp" # 如果要 KCP
|
|
||||||
# - "7002:7002/udp" # QUIC
|
|
||||||
# - "8080:8080/tcp" # vhostHTTPPort,给 Caddy 反代用
|
|
||||||
# - "7500:7500/tcp" # dashboard,也可让 Caddy 反代后不 export
|
|
||||||
volumes:
|
volumes:
|
||||||
- /home/ubuntu/sixfrps.toml:/etc/frp/frps.toml
|
- /home/ubuntu/sixfrps.toml:/etc/frp/frps.toml
|
||||||
environment:
|
environment:
|
||||||
- FRP_CONFIG_FILE=/etc/frp/frps.toml
|
- FRP_CONFIG_FILE=/etc/frp/frps.toml
|
||||||
|
ports:
|
||||||
|
- "7000:7000"
|
||||||
networks:
|
networks:
|
||||||
- xiao_network
|
- xiao_network
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,3 @@
|
|||||||
#bindPort = 7000
|
|
||||||
#
|
|
||||||
#vhostHTTPSPort = 443
|
|
||||||
#vhostHTTPPort = 80
|
|
||||||
#
|
|
||||||
#auth.method = "token"
|
|
||||||
#auth.token = "sixsixgousite"
|
|
||||||
#
|
|
||||||
# ===== 监听 =====
|
# ===== 监听 =====
|
||||||
bindAddr = "0.0.0.0"
|
bindAddr = "0.0.0.0"
|
||||||
bindPort = 7000 # frpc 连这台服的端口
|
bindPort = 7000 # frpc 连这台服的端口
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
serverAddr = "122.152.209.38"
|
|
||||||
serverPort = 7000
|
|
||||||
# 认证方式和token,必须与frps配置一致
|
|
||||||
auth.method = "token"
|
|
||||||
auth.token = "sixsixgousite"
|
|
||||||
|
|
||||||
[[proxies]]
|
|
||||||
name = "yanhua"
|
|
||||||
type = "https"
|
|
||||||
customDomains = ["django.jpyanhua.site"]
|
|
||||||
[proxies.plugin]
|
|
||||||
type = "https2http"
|
|
||||||
localAddr = "host.docker.internal:8001"
|
|
||||||
crtPath = "/etc/frp/yanhuassl/django.jpyanhua.site_bundle.crt"
|
|
||||||
keyPath = "/etc/frp/yanhuassl/django.jpyanhua.site.key"
|
|
||||||
hostHeaderRewrite = "127.0.0.1"
|
|
||||||
requestHeaders.set.x-from-where = "frp"
|
|
||||||
Reference in New Issue
Block a user