Command Palette

Search for a command to run...

player4sir/wasmer-vpn-proxy
Public
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 /health
  • POST /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 (default 15)
  • MAX_BODY_BYTES (default 1048576)

Deploy

  1. Update identity fields:
  • wasmer.toml -> [package].name
  • app.yaml -> owner, name, package
  1. Deploy:
wasmer login
wasmer deploy

Local run

python src/main.py

Then test:

curl http://127.0.0.1/health

HTTP/HTTPS proxy service for Wasmer Edge

More packages
CORS proxy server for Wasmer Edge
Reverse proxy that shows the rust website