Installation Run as service SSL support

Run as service

Here is basic service file for ruxy systemd service:

  1. useradd -r -s /bin/false ruxy #adding system user ruxy
  2. sudo setcap cap_net_bind_service=+ep ruxy #allow ruxy user to launch Ruxy server on privileged port
  3. vim /etc/systemd/system/ruxy.service
  4. (copy, edit and save contents)
  5. chown ruxy.ruxy /usr/local/ruxy/ # allow ruxy to write logs here
  6. systemctl enable ruxy
  7. systemctl start ruxy

    [Unit]
    Description="Ruxy WAF"
    
    [Service]
    Type=simple
    
    User=ruxy
    Group=ruxy
    
    ExecStart=/usr/local/ruxy/ruxy
    WorkingDirectory=/usr/local/ruxy/
    Restart=always
    RestartSec=1s
    RuntimeDirectoryMode=0750
    
    
    [Install]
    WantedBy=multi-user.target