tbs-server

0.0.0 • Public • Published

Turn-based strategy server.

** WORK IN PROGRESS - DONT'T WASTE YOUR TIME IN THIS **

componenets

security

  • hide implementation detail: remove x-powered-by header
  • disallows emeding in iframe: set X-Frame-Options: SAMEORIGIN
  • read to correct ip: app.set('trust proxy', 'loopback') (assumes we behind reverse proxy, as is the case with heroku)
  • redirect to https if x-forwarded-proto: http (again, assumes we behind reverse proxy, as is the case with heroku)

logging

  • setup default winston log
  • setup morgan to relay to winston info stream

robots

  • disallow in development
  • disallow static bower folder in production

errors

  • forward not found error the error handler
  • use devlopment error handler

misc

License

AGPL © Amit Portnoy

/tbs-server/

    Package Sidebar

    Install

    npm i tbs-server

    Weekly Downloads

    2

    Version

    0.0.0

    License

    AGPL

    Last publish

    Collaborators

    • amitport