Integration guide for deploying a Postgres database and custom backend using Railway for Postgres and Node.js hosting.
powersync
publication as described in the Source Database Setup section.
POWERSYNC_JWT_PRIVATEKEY
POWERSYNC_JWT_PUBLICKEY
echo | openssl s_client -showcerts -starttls postgres -connect <host>:<port> -servername <host> 2>/dev/null | sed -n '/BEGIN CERTIFICATE/,/END CERTIFICATE/p' | awk '/BEGIN/{i++}i==2' > railway.pem
<host>
and <port>
values with your own.POWERSYNC_URL
environment variable in Railwaypowersync
publication previously created