Running the Server in Production
Best practices for running an Exposr relay server.
Caution
Exposr v0.4 is experimental and not production-ready. Use it for development and testing only. See the Security section for current limitations.
Current status
The server can be started manually with exposr server start. For persistent operation, you can use a process manager.
Running with systemd
Experimental
Persistent server operation using systemd is a planned feature. The following is a manual setup approach.
You can create a systemd service file to keep the server running:
/etc/systemd/system/exposr.service
[Unit]
Description=Exposr Relay Server
After=network.target
[Service]
Type=simple
User=exposr
ExecStart=/usr/local/bin/exposr server start
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.targetbash
sudo systemctl enable exposr
sudo systemctl start exposrRecommendations
- Run the server as a dedicated non-root user
- Configure firewall rules to limit exposure
- Monitor logs for unexpected connection patterns
- Keep Exposr updated with the latest version
- Use the agent token authentication to prevent unauthorized access