https://github.com/avin/frp-caprover
https://github.com/avin/frp-caprover
caprover docker dockerfile frp
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/avin/frp-caprover
- Owner: avin
- Created: 2024-05-11T16:59:45.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-11T17:26:26.000Z (over 1 year ago)
- Last Synced: 2025-01-20T11:09:14.903Z (9 months ago)
- Topics: caprover, docker, dockerfile, frp
- Language: Dockerfile
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FRP for CapRover
[FRP](https://github.com/fatedier/frp) app configuration for [CapRover](https://caprover.com/)
## Configure app
Add Environmental Variables
* `TOKEN` = `secretpassword` (use same token in client.toml config)
* `SUBDOMAIN_HOST` = `frp.server.com` (replace with your domain)Add Port Mapping
```
Server Port : 37000 | Container Port : 7000
```Add domains
```
8888.frp.server.com
static.frp.server.com
```## Client config
`client.toml`
```toml
serverAddr = "frp.server.com"
serverPort = 37000
auth.method = "token"
auth.token = "secretpassword"# ---- https://8888.frp.server.com -> https://127.0.0.1:8888 ----
[[proxies]]
name = "web8888"
type = "http"
subdomain = "8888"
[proxies.plugin]
type = "http2https"
localAddr = "127.0.0.1:8888"# ---- https://static.frp.server.com -> share file from C:\\www ----
[[proxies]]
name = "static"
type = "http"
subdomain = "static"
[proxies.plugin]
type = "static_file"
localPath = "C:\\www"
httpUser = "abc"
httpPassword = "abc"```