Installation
Built with
WHMapper is written in C# with ASP.NET Core Blazor Server, EF Core and SignalR, and uses these components:
Requirements
Domain
We recommend using a domain name (your.domain.com) with public DNS for easy and consistent access.
Register your app with CCP
WHMapper logs pilots in with CCP's SSO and reads their location through the ESI API. Register an application at developers.eveonline.com:
- Click the "MANAGE APPLICATIONS" button.
- Click the "CREATE NEW APPLICATION" button.
- Choose a name for your installation (e.g., prod eve-whmapper).
- Enter a description for this installation (e.g., WHMapper production).
- Change "CONNECTION TYPE" to "Authentication & API Access".
- Add the minimum required "PERMISSIONS" (scopes):
esi-location.read_location.v1esi-location.read_ship_type.v1esi-ui.open_window.v1esi-ui.write_waypoint.v1esi-search.search_structures.v1
- Set your "CALLBACK URL" (e.g., https://your.domain.com/sso/callback).
- Click the "CREATE APPLICATION" button.
- Copy the Client ID, Secret Key, and Callback URL for use in the next configuration step.
Installation
Install WHMapper with Docker (recommended), or directly on Linux or Windows with the pre-built binaries.
- Docker
- Self-Hosted (Binary) ⚠️ Beta
Deploy with Docker & Compose
The Docker install runs WHMapper, PostgreSQL, Redis and an HTTPS reverse proxy with Docker Compose. An init script asks for your settings and prepares everything.
Server
We recommend using a Linux server with the Debian OS for optimal performance and support. If you prefer to use a different operating system, you will need to write your own init script or manually configure the necessary files (see the list below).
Docker
Install Docker with Compose first:
Get the Compose files
- Navigate to your desired installation location.
- Clone the WHMapper repository (we recommend
/opt/on Linux).
Linux
sudo git clone https://github.com/pfh59/eve-whmapper.git
cd eve-whmapper/deploy/docker
Windows
git clone https://github.com/pfh59/eve-whmapper.git
cd eve-whmapper/deploy/docker
Configuration
Run the init script (as root on Linux, as Administrator on Windows) and answer its questions:
Linux
sudo ./init.sh
Windows
./init.ps1
The script:
- writes your answers into
docker-compose.yml,haproxy.cfgandnginx.conf; - creates the Docker containers;
- gets a certificate for your domain, so WHMapper is served over HTTPS.
Start and stop
To manage the Docker containers, use the provided scripts:
Linux
- To Start all containers: Use the start.sh script as a sudo or root user.
sudo ./start.sh
- To Stop all containers: Use the stop.sh script as a sudo or root user.
sudo ./stop.sh
Windows
- To Start all containers: Use the start.ps1 script as an Administrator.
./start.ps1
- To Stop all containers: Use the stop.ps1 script as an Administrator.
./stop.ps1
Self-Hosted Installation (Binary)
This guide covers installing WHMapper directly on Linux Debian or Windows without Docker, using the pre-built binaries published on GitHub Releases.
This self-hosted (binary) installation method is new and has had limited real-world testing compared to the Docker method. Steps may be incomplete or unclear for some environments (distributions, Windows versions, reverse proxy setups, etc.).
If you run into an issue, a step that doesn't work, or anything unclear, please open an issue on the docs repository — your feedback directly helps fix and clarify this guide.
Requirements
| Component | Minimum version |
|---|---|
| .NET ASP.NET Core Runtime | 10.0 |
| PostgreSQL | 17 |
| Redis | 8 |
The published binaries are framework-dependent (not self-contained). The .NET 10 ASP.NET Core Runtime must be installed on the host — the .NET SDK is not required.
Installation
- Linux (x64 / ARM)
- Windows (x64)
1. Install .NET 10 ASP.NET Core Runtime
Follow the official Microsoft instructions for your distribution: https://learn.microsoft.com/dotnet/core/install/linux
Debian example:
# Add Microsoft package repository
wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
# Install the runtime (not the full SDK)
sudo apt-get update
sudo apt-get install -y aspnetcore-runtime-10.0
Verify:
dotnet --info
2. Install PostgreSQL 17
sudo apt-get install -y postgresql-17
sudo systemctl enable --now postgresql
3. Install Redis 8
sudo apt-get install -y redis-server
sudo systemctl enable --now redis-server
4. Create a system user
sudo useradd --system --no-create-home --shell /usr/sbin/nologin whmapper
5. Download and extract the binary
Download the latest release from GitHub Releases.
# Create installation directory
sudo mkdir -p /opt/whmapper
sudo mkdir -p /opt/whmapper/Logs
# Download the binary (replace vX.Y.Z with the actual version)
wget https://github.com/pfh59/eve-whmapper/releases/download/vX.Y.Z/WHMapper.linux-x64.zip -O /tmp/WHMapper.linux-x64.zip
# For ARM systems, use:
# wget https://github.com/pfh59/eve-whmapper/releases/download/vX.Y.Z/WHMapper.linux-arm.zip -O /tmp/WHMapper.linux-arm.zip
sudo unzip /tmp/WHMapper.linux-x64.zip -d /opt/whmapper
sudo chown -R whmapper:whmapper /opt/whmapper
sudo chmod +x /opt/whmapper/WHMapper
6. Configure PostgreSQL
sudo -u postgres psql <<EOF
CREATE USER whmapper WITH PASSWORD 'your_strong_password';
CREATE DATABASE whmapper OWNER whmapper;
GRANT ALL PRIVILEGES ON DATABASE whmapper TO whmapper;
EOF
7. Configure the application
Create an environment file with your settings:
sudo nano /etc/whmapper.env
EveSSO__ClientId=your_ccp_client_id
EveSSO__Secret=your_ccp_secret
ConnectionStrings__DatabaseConnection=server=localhost;port=5432;database=whmapper;User Id=whmapper;Password=your_strong_password
ConnectionStrings__RedisConnection=localhost:6379
Serilog__MinimumLevel__Default=Warning
sudo chmod 600 /etc/whmapper.env
sudo chown whmapper:whmapper /etc/whmapper.env
8. Create a systemd service
sudo nano /etc/systemd/system/whmapper.service
[Unit]
Description=EVE Wormhole Mapper
After=network.target postgresql.service redis-server.service
Requires=postgresql.service redis-server.service
[Service]
Type=simple
User=whmapper
WorkingDirectory=/opt/whmapper
ExecStart=/opt/whmapper/WHMapper
EnvironmentFile=/etc/whmapper.env
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable --now whmapper
sudo systemctl status whmapper
The application will start on port 5000 (HTTP) by default when run without a reverse proxy.
9. (Optional) Configure nginx as a reverse proxy with HTTPS
sudo apt-get install -y nginx certbot python3-certbot-nginx
server {
listen 80;
server_name your.domain.com;
location / {
proxy_pass http://127.0.0.1:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_bypass $http_upgrade;
}
}
sudo ln -s /etc/nginx/sites-available/whmapper /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl reload nginx
# Obtain a Let's Encrypt certificate
sudo certbot --nginx -d your.domain.com
Add this variable to /etc/whmapper.env so that WHMapper only listens on localhost, behind nginx:
ASPNETCORE_URLS=http://127.0.0.1:5000
Restart the service:
sudo systemctl restart whmapper
1. Install .NET 10 ASP.NET Core Runtime
Download and install the ASP.NET Core Runtime 10.0 from the official page: https://dotnet.microsoft.com/download/dotnet/10.0
Select "ASP.NET Core Runtime" (not the SDK).
Verify in PowerShell:
dotnet --info
2. Install PostgreSQL 17
Download the Windows installer from www.enterprisedb.com/downloads/postgres-postgresql-downloads.
During setup:
- Note the port (default: 5432)
- Set a strong password for the
postgressuperuser
Alternatively, with Chocolatey:
choco install postgresql17 --params '/Password:your_strong_password'
3. Install Redis
Redis does not have an official Windows binary. Use Memurai (Redis-compatible for Windows):
Download and install from www.memurai.com. It runs as a Windows service on port 6379 by default.
Alternatively, use Redis on Windows via WSL2.
4. Download and extract the binary
Download the latest release from GitHub Releases.
# Create installation directory
New-Item -ItemType Directory -Path "C:\whmapper" -Force
New-Item -ItemType Directory -Path "C:\whmapper\Logs" -Force
# Download (replace vX.Y.Z with the actual version)
Invoke-WebRequest -Uri "https://github.com/pfh59/eve-whmapper/releases/download/vX.Y.Z/WHMapper.win-x64.zip" `
-OutFile "$env:TEMP\WHMapper.win-x64.zip"
Expand-Archive -Path "$env:TEMP\WHMapper.win-x64.zip" -DestinationPath "C:\whmapper" -Force
5. Configure PostgreSQL
Open pgAdmin or psql and run:
CREATE USER whmapper WITH PASSWORD 'your_strong_password';
CREATE DATABASE whmapper OWNER whmapper;
GRANT ALL PRIVILEGES ON DATABASE whmapper TO whmapper;
Or via psql in PowerShell:
& "C:\Program Files\PostgreSQL\17\bin\psql.exe" -U postgres -c "CREATE USER whmapper WITH PASSWORD 'your_strong_password';"
& "C:\Program Files\PostgreSQL\17\bin\psql.exe" -U postgres -c "CREATE DATABASE whmapper OWNER whmapper;"
6. Configure the application
Create a configuration file next to the binary:
New-Item -Path "C:\whmapper\appsettings.Production.json" -ItemType File
Edit C:\whmapper\appsettings.Production.json:
{
"EveSSO": {
"ClientId": "your_ccp_client_id",
"Secret": "your_ccp_secret"
},
"ConnectionStrings": {
"DatabaseConnection": "server=localhost;port=5432;database=whmapper;User Id=whmapper;Password=your_strong_password",
"RedisConnection": "localhost:6379"
},
"Serilog": {
"MinimumLevel": {
"Default": "Warning"
}
}
}
You can also configure the application using system environment variables instead of a file. Environment variable names use __ as separator (e.g., EveSSO__ClientId).
7. Register as a Windows Service
Open PowerShell as Administrator:
# Set the ASPNETCORE_ENVIRONMENT so the Production config is loaded
[System.Environment]::SetEnvironmentVariable("ASPNETCORE_ENVIRONMENT", "Production", "Machine")
# Register the service
sc.exe create "WHMapper" `
binPath= "C:\whmapper\WHMapper.exe" `
start= auto `
DisplayName= "EVE Wormhole Mapper"
sc.exe description "WHMapper" "EVE Wormhole Mapper - self-hosted binary"
# Start the service
sc.exe start "WHMapper"
Check the service status:
sc.exe query "WHMapper"
Logs are written to C:\whmapper\Logs\.
8. (Optional) Configure nginx as a reverse proxy with HTTPS
Download nginx for Windows from nginx.org/en/download.html and extract it to C:\nginx.
Edit C:\nginx\conf\nginx.conf:
worker_processes 1;
events { worker_connections 1024; }
http {
server {
listen 80;
server_name your.domain.com;
location / {
proxy_pass http://127.0.0.1:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
server {
listen 443 ssl;
server_name your.domain.com;
ssl_certificate C:/nginx/certs/fullchain.pem;
ssl_certificate_key C:/nginx/certs/privkey.pem;
location / {
proxy_pass http://127.0.0.1:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto https;
}
}
}
Register nginx as a Windows service using NSSM:
nssm install nginx "C:\nginx\nginx.exe"
nssm start nginx
Place your SSL certificates in C:\nginx\certs\.
Make WHMapper listen on localhost only, behind nginx, by setting this system environment variable (PowerShell as Administrator):
[System.Environment]::SetEnvironmentVariable("ASPNETCORE_URLS", "http://127.0.0.1:5000", "Machine")
Restart the WHMapper service:
sc.exe stop "WHMapper"
sc.exe start "WHMapper"
Configuration Reference
| Key | Environment variable | Default | Description |
|---|---|---|---|
EveSSO.ClientId | EveSSO__ClientId | (none) | CCP SSO Client ID |
EveSSO.Secret | EveSSO__Secret | (none) | CCP SSO Secret |
ConnectionStrings.DatabaseConnection | ConnectionStrings__DatabaseConnection | (none) | PostgreSQL connection string |
ConnectionStrings.RedisConnection | ConnectionStrings__RedisConnection | (none) | Redis connection string |
| — | ASPNETCORE_URLS | http://localhost:5000 | Addresses and ports WHMapper listens on |
https_port | https_port | 443 | Port used when redirecting HTTP requests to HTTPS |
Instances.SingleTenantMode | Instances__SingleTenantMode | false | Allow only one instance on the deployment (see Single-Tenant Mode) |
DisableSignalRCertificateValidation | DisableSignalRCertificateValidation | false | Disable TLS validation for SignalR (local/dev only) |
Serilog.MinimumLevel.Default | Serilog__MinimumLevel__Default | Warning | Log level |
Updating
To update to a newer version:
- Download the new binary from GitHub Releases.
- Stop the service.
- Replace the files in the installation directory (keep your
appsettings.Production.jsonor environment file). - Start the service. Database migrations are applied automatically on startup.
Need help?
Ask on the GitHub repository or on the EVE Online forum thread.
Next step → First Start