Skip to content

Windows Server Setup


Additionally, you can download a setup package to speed up deployment:

Download Setup Package

This includes:

  • Directory structure
  • Launch script
  • Example Nginx configuration

Recommended layout:

C:\portweaver\
├── launch.bat
└── bin\
└── portweaver-server.exe

In a Windows Server environment, no dependencies are required to run portweaver-server.exe. Only one script is required from the root directory:

  • Starts Portweaver and nginx
  • Manages their lifecycle
  • Must be accessible and allowed through the network

Portweaver runs on an HTTP-only Uvicorn server. SSL cannot be integrated directly into the binary.

To provide secure access:

  • nginx is used as a reverse proxy
  • HTTPS is terminated at nginx
  • Traffic is forwarded internally to Portweaver

Configuration files are located in:

..\bin\appdata\storage

By default, Portweaver runs on:

0.0.0.0:8080

This means that by default, it listens on all interfaces over HTTP.


Nginx is responsible for:

  • Serving HTTPS on port 443
  • Redirecting HTTP (80 → 443)
  • Forwarding traffic to Portweaver on 8080

The configuration file is located at:

..\..\nginx\conf\nginx.conf

The internal Portweaver port (8080) must not be exposed externally.

Only nginx should be reachable from outside the server.

  • Allow:

    • TCP 80 (HTTP → redirect)
    • TCP 443 (HTTPS)
  • Block:

    • TCP 8080 (external access)

Windows Firewall Rules


Ensure the runtime environment is correctly configured before launching the application.

Windows Environment Setup


  • Use launch.bat to run Portweaver and nginx
  • Do not move encrypted configuration files
  • Use nginx for all external traffic
  • Restrict direct access to port 8080

This setup helps to ensure a secure and stable deployment in a Windows Server environment.