Skip to content

Install the API On Windows

Daemon Forge edited this page Aug 6, 2021 · 7 revisions

Video Tutorial

https://youtu.be/oMq3TIYuZXo

1. Install MongoDB(Community Edition)

Optionally you can sign up for a database from Mongodb Atlas you will need to the white list the IP addresses of the server running the API service and then update the config.json after the API is installed with the connection URL, The free tier is only recommended for smaller communities as it has a limit of 500 connections, limited speeds. (Yes you can run the API on each server and then connect them to the same database to load balance the API service)

1. Download the community Edition https://www.mongodb.com/try/download/community

2. Once downloaded Run the installer and follow the prompts keeping everything default

When you get to the page that ask you to choose "custom" or "complete" choose "complete"

3. a. Confirm the installation, by opening MongoDBCompass

3. b. Leave the connection string black and Click "connect"

3. c. (if you don't get any errors you are good to move on to continue to installing the Web Service)

2. Installing API Service Windows

There are two options for installing the Web Service the preferred option is to use the Desktop Installer which install a tiny application on the server which acts as the Web Server and UApi Manager providing tools to edit and maintain the Universal API set up, it also includes an Updater Built in to help ensure that your always up to date. The second option is the older option that I am maintaining which is installed as a windows service this is useful if you want it to be as lightweight as possible but doesn't include any management tools or Auto Updates so you will need to make sure you check for new versions regularly.

A. Installing Desktop Manager

First and formorth this is the easiest way to use the Universal API You can see the YouTube Tutorial Here

1. Make sure MongoDB is Installed See Above

2. Download the latest copy of UApiWebServiceInstaller.exe Here or Here

3. Run UApiWebServiceInstaller.exe and wait for it to installation to complete

4. Check the About/Status Page to make sure everything is online

5. Follow These Steps for Each DayZ Server

6. Open port 443 on the Windows Server Firewall Click Here for a tutorial

OR

B. Install As a Service

1. Download dayzwebservice-win.exe from latest windows release from Releases

2. Copy dayzwebservice-win.exe into its own folder to make sure your files are organized

3. Right Click Run As Administrator (Or you might get some errors with it binding to the ports)

4. When it first runs it will give you the server auth token make sure to copy that for later

  • If you lose the AuthToken you can still get it from the config.json that will be generated in the folder
  1. Open port 443 on your windows firewall and port forward if the server is sitting behind a firewall

3. Check if it's working

Check your API

1. reqbin.com - Change to POST and use your server https://1.1.1.1/Status

  • if you see this then it is working!
{
    "Status": "ok",
    "Error": "noauth"
}