Coder Social home page Coder Social logo

ngxpkg's Introduction

ngxpkg Build Status

A cli tool for nginx

Install

Install go before use ngxpkg, or you can download release version. How to install go please look at https://golang.org/doc/install

go get github.com/webpkg/ngxpkg

mv $GOPATH/bin/ngxpkg $GOPATH/bin/ngc

or you can build it for other system by use

go get github.com/webpkg/ngxpkg

cd $GOPATH/src/github.com/webpkg/ngxpkg/

make

Default Env

Create new sites with domains ngxpkg.com, dbpkg.com ...

ngc new ngxpkg.com dbpkg.com

it will create conf files:

  • /etc/nginx/conf.d/ngxpkg.com.conf
  • /etc/nginx/conf.d/dbpkg.com.conf

and create sites:

  • /opt/local/www/ngxpkg.com/

    • /opt/local/www/ngxpkg.com/public
    • /opt/local/www/ngxpkg.com/conf/fullchain.ecdsa.pem
    • /opt/local/www/ngxpkg.com/conf/privkey.ecdsa.pem
    • /opt/local/www/ngxpkg.com/conf/fullchain.rsa.pem
    • /opt/local/www/ngxpkg.com/conf/privkey.rsa.pem
    • /opt/local/www/ngxpkg.com/conf/ocsp.pem
  • /opt/local/www/dbpkg.com/

    • /opt/local/www/dbpkg.com/public
    • /opt/local/www/dbpkg.com/conf/fullchain.ecdsa.pem
    • /opt/local/www/dbpkg.com/conf/privkey.ecdsa.pem
    • /opt/local/www/dbpkg.com/conf/fullchain.rsa.pem
    • /opt/local/www/dbpkg.com/conf/privkey.rsa.pem
    • /opt/local/www/dbpkg.com/conf/ocsp.pem
  • /opt/local/www/conf

    • /opt/local/www/conf/dhparam.pem
    • /opt/local/www/conf/ticket.pem

Notice.

please replace the files with yours after create new site.

  • /opt/local/www/conf/dhparam.pem
  • /opt/local/www/conf/ticket.pem

Renew ssl with domains ngxpkg.com, dbpkg.com ...

ngc renew ngxpkg.com dbpkg.com

it will renew all ssl certificates list on sites conf file when it's valid days less then NGX_ALLOW_RENEW_DAYS

Reference Links

https://github.com/google/acme

https://gethttpsforfree.com/

https://mozilla.github.io/server-side-tls/ssl-config-generator/

Copyright notice

https://github.com/google/acme is under Apache-2.0

https://github.com/diafygi/gethttpsforfree is under MIT

https://github.com/mozilla/server-side-tls is under MPL-2.0

License

Copyright (C) 2017 ZhiQiang Huang, All Rights Reserved.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.

ngxpkg's People

Contributors

sskycn avatar

Watchers

Ch. König avatar James Cloos avatar

Forkers

icodus

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.