Code Monkey home page Code Monkey logo

gen's Introduction

Currently this can be used to create configuration for NginX websites with best practice (I hope).

Probably this will be extended in future to other things.

branch: cirrus

Config generator

This is a generator for complex configuration files.

  • Easy to use
  • Easy to extend
  • mostly pure bash (plus a few standard utilities)

All you need is to make love.

Usage

git init conf
cd conf

git fetch https://github.com/hilbix/empty.git
git reset FETCH_HEAD
git tag empty

git submodule add https://github.com/hilbix/gen.git
git submodule update --init
ln -s gen/Makefile .

git add -A .
git commit -m .

Example:

ln -s gen/example.org gen/letsencrypt.http .
make
  • It transforms all *.* files into out/ according to gen/std/.
  • You can adapt/override everything in the directory gen/

HowTo

FAQ

Hints?

WTF why?

  • Because keeping a fleet of sites with all those changing standards is a PITA.
  • Hence I needed something to bundle it.
  • The problem is with NginX not offering configuration macros, so you need some script to create the site include.

Why Makefiles?

  • Because I'm just too lazy. So I expect make to just do it for me.
  • Also Makefiles are excellent documentation of what is possible where

Bugs? Contact?

  • Issue on GitHub, eventually I listen.

Changes? Contrib?

  • PR on GitHub, eventually I listen.

License?

  • Are you kidding? This is an absolutely trivial basic open knowledge no-brainer!
  • In this universe there are some basic rules, and one is that things like this here cannot be copyrighted.
  • So this is Public Domain. Open speech. Rants. Whatever you like.
  • INTELLECTUAL PROPRIETARY RIGHTS ARE SLAVERY! Slavery must be abolished.

But ..

  • No! Definitively no. No buts, no objections, no nothing. No not no!
  • The scripting I did was done in a hurry. And there is absolutely nothing to it. Plain straight forward.
  • There was something needed to reduce the NginX config complexity. This is, what came out.
  • This all is a no-brainer. This text here is even more difficult to understand than the Makefile!
  • Please see this all here as just some mini-dump of a region of my brain, openly performed to an open audience.

gen's People

Contributors

hilbix avatar

Watchers

 avatar  avatar  avatar

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.