Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 557 Bytes

File metadata and controls

36 lines (26 loc) · 557 Bytes

Run this on linux to get the public IP to use for the server

ip route show | grep default | awk '{print $3}'

Start PHP FPM service

sudo service php8.5-fpm start5

Start nginx server

sudo service nginx restart

Generate Random Tokwn

With Linux

openssl rand -hex 32

On Powershell

[Convert]::ToHexString((1..32 | % { [byte](Get-Random -Min 0 -Max 256) }))

Add to env and export

echo 'export SPYROCHAT_UNIX_SECRET="secret_key"' >> ~/.bashrc
source ~/.bashrc