GithubHelp home page GithubHelp logo

nemvv's Introduction

nemvv

Node Express Mongo Vue Vuetify

cfg파일 작성

./cfg/cfg.js

module.exports = {
  db: {
    url : "mongodb://id:[email protected]:27017/nemvv"
  },
  web: {
    host: 'localhost:3000',
    cors: true,
    secret_key : 'VeryUltraKey',
    http : {
      use : true,
      port : 3000,
      redirect : false
    },
    https : {
      use : true,
      port : 3001,
      key : './cfg/key/xxx.com.key',
      cert : './cfg/key/7d205546d3cd579e.crt',
      ca : './cfg/key/gd_bundle-g2-g1.crt'
    },
    jwt: {
      expiresIn: '7d',
      reTokenTime: 60*60*1,// 60*10,
    },
  },
  pm2: {
    deploy: {
      production: {
        user: 'root',
        host : [
          {
            host: 'xxx.com',
            port: '20002',
          }
        ],
        ref  : 'origin/master',
        repo : '[email protected]:fkkmemi/nemvv.git',
        path : '/var/www/nemvv',
        'post-deploy' : 'yarn && cd fe && yarn && npm run build',
      },
      dev : {
        user: 'root',
        host : [
          {
            host: 'xxx.com',
            port: '20002',
          }
        ],
        ref  : 'origin/master',
        repo : '[email protected]:fkkmemi/nemvv.git',
        path : '/var/www/nemvv',
        'post-deploy' : 'yarn && cd fe && yarn && npm run build && cd .. && pm2 startOrRestart ecosystem.config.js',
      }
    },
  },
  mail: {
    host: 'smtp.xxx.com',
    port: 25,
    secure: false,
    auth: {
      user: '[email protected]',
      pass: 'emailpwd',
    },
  },
  dev : {
    log : true,
  },
};

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.