Calebh101/old-server

An old version of my server. I'm remaking it completely, so don't go using this to try to hack stuff, as literally nothing runs this anymore.

★ 0Forks 0JavaScriptGitHub ↗Compare

README

What is this?

This is my Node.js server that runs my apps. This is also my personal documentation for production environments. I provide official documentation on my website.

About

  • Current API version: v1

Required Files for Production

Certificates

  • These files must be placed in the /cert folder (this folder will be on the root of the drive) on the host:

    • cert.pem - Preferably a full chain
    • key.pem
    • pass.txt - This holds the passkey to key.pem
    • encrypt.txt - This holds the key to encrypted items in the database
  • These extra files must be placed in the ./config directory (in the project directory):

    • private.json - This holds certain credentials, like API keys
  • Lastly, .env must be placed in the root of the project with these fields:

    • DEBUG: boolean
    • ANALYTICS: boolean
    • FEATURE_FLAGS: boolean
    • CONTACT: email for server reports
    • EMAIL: email for automated emails
    • EMAILPASS: password for the automated email
    • JWT_SECRET_KEY: a random string for the password authentication (this must be unique across all environments of the server)
    • HOME_HOST: host for home server
    • HOME_ACCESS_CODE: code for home server

Contributors

Calebh101

Issues