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 and update scripts
  • Example Nginx configuration

In a Windows Server environment, only two scripts are required from the root directory:

  • update.bat
  • launch.bat
  • Pulls the latest build artifact from the repository
  • Verifies and prepares it
  • Places it into:
..\bin
  • 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 update.bat to fetch and prepare builds
  • 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 ensures a secure and stable deployment in a Windows Server environment.