From e6d053bf0c655d1cbc8169827e7287f8b291b276 Mon Sep 17 00:00:00 2001 From: Chad $yntax Date: Sat, 1 Mar 2025 17:38:56 -0500 Subject: [PATCH 1/3] add railway docs --- pages/installation/railway.mdx | 62 ++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 pages/installation/railway.mdx diff --git a/pages/installation/railway.mdx b/pages/installation/railway.mdx new file mode 100644 index 0000000..0985440 --- /dev/null +++ b/pages/installation/railway.mdx @@ -0,0 +1,62 @@ +--- +title: Railway +description: How to install Postiz on Railway +--- + +import EarlyDoc from '../../components/snippets/earlydoc.mdx'; +import { Steps, Callout } from 'nextra/components'; +import Prereqs from '../../components/snippets/installation-pre-reqs.mdx'; + + + + + +{/* */} + +
+ +# Create new Railway Project + +Just click the button below and use the default settings to get started. + +[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/template/xWx2v4?referralCode=chad) + +
+
+ +Environment Variables + +You will need to set the following environment variables: + +```env +# This file is just as an example of the required environment variables for railway. +# The template should have copied these into the railway postiz-app variables section, only listing here for reference. + +PORT="5000" # instructs railway to connect the public domain to port 5000 +BACK_END_PORT="3000" +IS_GENERAL="true" +SKIP_CONFIG_CHECK="true" +DATABASE_URL="${{Postgres.DATABASE_URL}}" +REDIS_URL="${{Redis.REDIS_URL}}?family=0" # the ?family=0 is to necessary for bullqueue to connect to redis via ipv6 +JWT_SECRET="replace me with a long random string" +NODE_ENV="production" +BACKEND_INTERNAL_URL="http://localhost:3000" + +NEXT_PUBLIC_UPLOAD_STATIC_DIRECTORY="/uploads" +NEXT_PUBLIC_UPLOAD_DIRECTORY="/uploads" +UPLOAD_DIRECTORY="/uploads" +STORAGE_PROVIDER="local" + +NEXT_PUBLIC_BACKEND_URL="https://${{RAILWAY_PUBLIC_DOMAIN}}/api" +# use this if you have a custom domain +# NEXT_PUBLIC_BACKEND_URL="https://postiz.example.com/api" + +FRONTEND_URL="https://${{RAILWAY_PUBLIC_DOMAIN}}" +# use this if you have a custom domain +# FRONTEND_URL="https://postiz.example.com" + +MAIN_URL="https://${{RAILWAY_PUBLIC_DOMAIN}}" +# use this if you have a custom domain +# MAIN_URL="https://postiz.example.com" + +``` From bcf7b115e25e006dfdbd47e3b06ebf813742cefd Mon Sep 17 00:00:00 2001 From: Chad $yntax Date: Sat, 1 Mar 2025 20:56:42 -0500 Subject: [PATCH 2/3] add railway docs --- pages/installation/_meta.js | 4 +++- pages/installation/railway.mdx | 12 +++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/pages/installation/_meta.js b/pages/installation/_meta.js index 46c260f..bca1b2b 100644 --- a/pages/installation/_meta.js +++ b/pages/installation/_meta.js @@ -3,5 +3,7 @@ export default { "docker": "Docker (standalone)", "kubernetes-helm": "Kubernetes with Helm", "development": "Development Environment", - "devcontainer": "Devcontainer" + "devcontainer": "Devcontainer", + "coolify": "Coolify", + "railway": "Railway" }; diff --git a/pages/installation/railway.mdx b/pages/installation/railway.mdx index 0985440..70ae1ab 100644 --- a/pages/installation/railway.mdx +++ b/pages/installation/railway.mdx @@ -4,18 +4,15 @@ description: How to install Postiz on Railway --- import EarlyDoc from '../../components/snippets/earlydoc.mdx'; -import { Steps, Callout } from 'nextra/components'; import Prereqs from '../../components/snippets/installation-pre-reqs.mdx'; -{/* */} -
-# Create new Railway Project +## Create new Railway Project Just click the button below and use the default settings to get started. @@ -24,14 +21,11 @@ Just click the button below and use the default settings to get started.

-Environment Variables +### Environment Variables -You will need to set the following environment variables: +The environment variables should be already set up in the template, only listing here for reference. ```env -# This file is just as an example of the required environment variables for railway. -# The template should have copied these into the railway postiz-app variables section, only listing here for reference. - PORT="5000" # instructs railway to connect the public domain to port 5000 BACK_END_PORT="3000" IS_GENERAL="true" From 2429bca346c496b79cd6e42bca67d0a1c3536293 Mon Sep 17 00:00:00 2001 From: Chad $yntax Date: Sun, 2 Mar 2025 15:51:35 -0500 Subject: [PATCH 3/3] remove env var --- pages/installation/railway.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/pages/installation/railway.mdx b/pages/installation/railway.mdx index 70ae1ab..703c972 100644 --- a/pages/installation/railway.mdx +++ b/pages/installation/railway.mdx @@ -27,7 +27,6 @@ The environment variables should be already set up in the template, only listing ```env PORT="5000" # instructs railway to connect the public domain to port 5000 -BACK_END_PORT="3000" IS_GENERAL="true" SKIP_CONFIG_CHECK="true" DATABASE_URL="${{Postgres.DATABASE_URL}}"