sudo apt install postgresql postgis)sudo -u postgres psql to confirm it is configured \q to quit
sudo service postgresql startsudo -u postgres createdb udserverdb) (or replace udserverdb can be any database name of your choosing, you can configure which database to connect to in Configuring udServer below)sudo -u postgres createuser udserveruser (or replace udserveruser with another user name, or optionally use existing postgres user instead)sudo -u postgres psql and then run the following:
ALTER USER udserveruser WITH PASSWORD '<password>'; (replacing <password> with the desired password) to set the passwordGRANT ALL PRIVILEGES ON DATABASE udserverdb TO udserveruser;\qpsql -h 127.0.0.1 -U udserveruser udserverdb, entering the password you set above and then quit using \qThis assumes the database is located on another machine, see above for steps.
New-Service -Name "udServer" -DisplayName "udServer" -BinaryPathName "<udServer location>\udServer.exe" -StartupType Automaticudserver_1.0.0-1.deb package using the command dpkg -i udserver_1.0.0-1.deb... config.json & licenses.json ...
This information is the general settings for this server.
We do not recommend udServer handling SSL connections on production servers with more than 100 concurrent users. A reverse proxy or load balancer can handle this more efficiently.
Server name is the friendly name of this server, generally Nuclideon udServer or a region based name would SYD-WIN-UD-053 would be expectedServer Address is the listen address of the server. Unless you have a complex shared server, 0.0.0.0 is recommended.HTTP Mode is what do to when someone connects via HTTP:// instead of HTTPS://HTTP Port is the port to listen on if HTTP is enabled. Recommended is 80HTTPS Port is the port to listen on for HTTPS traffic. Port 443 is recommended.SSL Public Certificate is the SSL certificate to use for HTTPS traffic. It will usually begin with -----BEGIN CERIFICATE-----SSL Private Key is the SSL private key, it generally begins with -----BEGIN PRIVATE KEY-----Euclideon udServer uses a PostgreSQL database (9 or higher) for storing everything and is unable to work without it. The server must be configured with pgcrypto extension installed.
Host is the database host postgres.local or 10.4.1.250 are expected resultsPort is the database post, by default PostgreSQL uses 5432Username is the database userPassword is the database password, it is required and there is no defaultDatabase Name is the name of the database Euclideon udServer will use, udserver is recommendedActive Database Connections is the number of pooled connections udServer will maintain in order to respond quickly to requests. 10 is recommended and less than 4 is likely to degrade performance.Once the server starts, when connecting you will be prompted for OIDC connection information.
If not using the Docker image you can register udServer as a service using the standard service system.
Here is a template udServer.service file for Ubuntu which you can put in /etc/systemd/system/.
[Unit]
Description=Nuclideon udServer
StartLimitInterval=200
StartLimitBurst=5
[Service]
WorkingDirectory=/opt/udserver
ExecStart=/opt/udserver/udServer
SyslogLevelPrefix=false
Type=idle
Restart=on-failure
RestartSec=30
[Install]
WantedBy=multi-user.target
After you create the file don't forget to sudo systemctl daemon-reload and sudo systemctl start udServer!