player4sir/wasmer-vpn-proxy
Public
Public
wasmer run player4sir/wasmer-vpn-proxy
wasmer run player4sir/wasmer-vpn-proxy
Wasmer VPN Proxy (HTTP/HTTPS)
This project provides an application-layer proxy on Wasmer Edge.
Important:
- This is not a full L3/L4 VPN server.
- It is an HTTP/HTTPS forward proxy API (
POST /proxy). - For security, private/local network targets are blocked.
Endpoints
GET /healthPOST /proxy
Example request:
curl -X POST "https://<your-app>.wasmer.app/proxy" \
-H "Content-Type: application/json" \
-H "X-Proxy-Token: <your-token>" \
-d '{
"url": "https://httpbin.org/get",
"method": "GET",
"headers": {"User-Agent": "wasmer-proxy"}
}'
Configure
Set secret before deploy (recommended):
wasmer app secrets create PROXY_TOKEN "replace-with-strong-token"
Optional env vars:
PROXY_TIMEOUT(default15)MAX_BODY_BYTES(default1048576)
Deploy
- Update identity fields:
wasmer.toml->[package].nameapp.yaml->owner,name,package
- Deploy:
wasmer login
wasmer deploy
Local run
python src/main.py
Then test:
curl http://127.0.0.1/health