Skip to content

Configure Mideye After Installation — Database & Port

After installing the Mideye Server package, you need to configure the database connection and verify the server port before starting the service and running the web-based Configuration Wizard.

StepWhatWhere
1Configure the databaseapplication-prod.yml
2Verify the server portapplication-prod.yml
3Start the service and check logsTerminal / Services
4Verify firewall accessNetwork / browser
5Find the setup challengeServer log
6Complete the Configuration WizardWeb browser

All server settings live in application-prod.yml. This file is read on startup and overrides internal defaults.

PlatformPath
WindowsC:\Program Files (x86)\Mideye Server 6\config\application-prod.yml
RHEL / Rocky / Alma/opt/mideyeserver6/config/application-prod.yml
Debian / Ubuntu/opt/mideyeserver6/config/application-prod.yml

Tip: Back up this file before making changes. After editing, restart the service for changes to take effect.


Mideye Server needs a database connection to start. The installer may have configured this during installation (Windows with SQL Server), but for Linux installs or MySQL/MariaDB you must set this manually.

Open application-prod.yml and locate the spring.datasource section:

spring:
datasource:
url: jdbc:mariadb://localhost:3306/MideyeServer
username: mideye
password: your_secure_password

Key settings:

PropertyDescription
urlJDBC connection string — set hostname, port, and database name
usernameDatabase user with full permissions on the Mideye database
passwordDatabase user password

The web interface port is set in the server section of application-prod.yml:

server:
port: 8443
ssl:
key-store: /opt/mideyeserver6/config/keystore.p12
key-store-password: "AUTOGENERATED_KEYSTORE_PASSWORD"
key-alias: webadmin
enabled: true

Change port if the default conflicts with another application on the same server. Common alternatives: 443, 8443, 9443.


After configuring the database and port, start the service and verify it starts without errors.

Terminal window
sudo systemctl enable mideyeserver6
sudo systemctl start mideyeserver6

Check the log for startup messages:

Terminal window
tail -f /opt/mideyeserver6/log/mideyeserver.log

A successful startup shows:

----------------------------------------------------------
Application 'MideyeServer' is running! Access URLs:
Local: https://localhost:8443/
External: https://10.20.30.11:8443/
Profile(s): [prod]
----------------------------------------------------------

If the server fails to start, check for:

SymptomLikely cause
Connection refused or Communications link failureDatabase not running, wrong host/port, or wrong credentials
Access denied for userWrong database username or password
Unknown databaseDatabase does not exist — create it first
Address already in useAnother service is using the configured port
Keystore was tampered withWrong keystore password

Before you can reach the web interface, ensure these ports are open between your workstation and the Mideye Server:

PortProtocolDirectionPurpose
443 or 8443TCPInboundWeb administration interface
1812UDPInbound + OutboundRADIUS authentication
Customer-specific portTCPOutboundMideye Switch connection

Quick test from your workstation:

Terminal window
curl -k https://your-server:8443/management/health

A working connection returns {"status":"UP"} (or TcpTestSucceeded: True on Windows).

If the connection fails, check your OS firewall and any network firewalls between your workstation and the server. See Networking Requirements for the full port listing.


When Mideye Server starts for the first time without a configured root account, it generates a one-time setup challenge and logs it. You need this code to complete the Configuration Wizard.

Terminal window
grep "SETUP CHALLENGE" /opt/mideyeserver6/log/mideyeserver.log

You’ll see:

2024-01-15 09:18:45.498Z WARN [main] SetupService: ************************************
2024-01-15 09:18:45.498Z WARN [main] SetupService: ******* SETUP CHALLENGE: mmnsMuGFjJ
2024-01-15 09:18:45.498Z WARN [main] SetupService: ************************************

Copy the challenge code — you’ll enter it in the next step.


Open a browser and navigate to:

https://<your-server>:<port>

The Configuration Wizard walks you through:

  1. Setup challenge — Enter the code from the log
  2. Root password — Create the initial administrator account
  3. Switch connection — Connect to Mideye Switch for OTP delivery (or enable air-gapped mode)
  4. LDAP profile (optional) — Connect to Active Directory or another directory
  5. RADIUS client (optional) — Register your first VPN or firewall

Configuration Wizard — full walkthrough


Once the wizard finishes, you have:

  • ✅ Root administrator access to the web interface
  • ✅ Connection to Mideye Switch (or air-gapped mode enabled)
  • ✅ Server ready for directory and RADIUS configuration
TaskDescription
Add LDAP/AD profileConnect your identity source for user lookup
Configure RADIUS clientsAdd VPNs, firewalls, and applications
Set up authentication typesEnable SMS, Push, TOTP, or hardware tokens
Configure Mideye ShieldProtect against brute-force and MFA fatigue attacks