Skip to main content

Prerequisites

1. Upload required files

Transfer the following files to your VPS:
  • server.jar (SunStore server file)
  • license.txt (contains your license key)
You can use scp or an FTP client like FileZilla. Example using scp:

2. Start the SunStore server

Navigate to the directory containing server.jar and license.txt, then run:
  • Replace 25595 with the desired port number.
  • Make sure the port is open in your firewall settings.
If Java 21+ is not installed, you can install it with:

3. Verify local access

Once the server starts, check it from the VPS itself:

4. Expose to the internet (optional)

To access SunStore from an external network, configure a reverse proxy with Nginx. Install Nginx
Configure the Nginx proxy
Add the following content:
Save and exit (CTRL + X, then Y, then Enter). Enable the configuration and restart Nginx
SunStore is now available at http://yourdomain.com.

5. Run on port 80 (alternative)

If you don’t want to use Nginx, run SunStore directly on port 80:
This works only if no other services (like Nginx or Apache) are using port 80.

6. Configure the firewall (if required)

7. Keep SunStore running

To keep SunStore running after you close the terminal, use screen or tmux:
Press CTRL + A, then D to detach. To resume:

Conclusion

SunStore is now set up on your VPS. You can manage it manually or configure a systemd service for automatic startup. If you’d prefer a managed setup, consider SunStore Managed Hosting.