GitDeployHub

cdbattags/ohmyform

github.com/cdbattags/ohmyform ↗
Node.js API
20 environment variables found in .env.example

Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow. (showing first 20, more exist in .env.example)

  • ROOT Set this to the path where Mailu data and configuration is stored Mac users: Change to a Docker accessible folder
  • NODE_ENV Set to what environment you will be running OhMyForm in (production or development)
  • SECRET_KEY secret Set to a randomly generated 16 bytes string
  • MONGODB_URI secret URI of Mongo database that OhMyForm will connect to DO NOT CHANGE
  • REDIS_URL secret URL Redis server that OhMyForm will connect to DO NOT CHANGE
  • PORT Port that the OhMyForm Node app will listen on
  • BASE_URL Domain that OhMyForm's admin panel will be hosted at
  • SOCKET_PORT Port that SocketIO server (for analytics) will listen on
  • TLS_FLAVOR Choose what kind of TLS you want. Can be either 'cert' (supply your certificates in ./cert/), 'notls' (no https at all) or 'letsencrypt'…
  • COVERALLS_REPO_TOKEN secret Set this to enable coveralls.io support
  • SIGNUP_DISABLED Disable signups for your OhMyForm instance
  • SUBDOMAINS_DISABLED Disable per-user custom subdomains
  • SUBDOMAIN_URL Url that subdomains will be hosted at (has to have domain name as ADMIN_URL) Only used when SUBDOMAINS_DISABLED=FALSE
  • ENABLE_CLUSTER_MODE Enable running OhMyForm in pm2's 'cluster' mode
  • MAILER_EMAIL_ID Set this to set the username credential of your SMTP service
  • MAILER_PASSWORD secret Set this to set the password credential of your SMTP service
  • MAILER_FROM Set this to set the email address that all email should be sent from for signup/verification emails
  • MAILER_SERVICE_PROVIDER Set this to any services from https://nodemailer.com/smtp/well-known/ to use a 'well-known' email provider
  • MAILER_SMTP_HOST Set these if you are not using a 'MAILER_SERVICE_PROVIDER' and want to specify your SMTP server's address and port
  • MAILER_SMTP_PORT
Alternative Fly.io Anything Dockerized — requires the Fly CLI.
macOS
brew install flyctl && fly launch --from https://github.com/cdbattags/ohmyform
Linux
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/cdbattags/ohmyform
Windows (PowerShell)
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/cdbattags/ohmyform
Or deploy to a different host
← Try another repo