shibukk / testing-nginx

A configuration file testing of nginx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

testing-nginx

A configuration file testing of nginx

Description

It's simple proxy for nginx configuration file testing.

browser <----> proxy server (nginx) <----> app server (golang/ruby)

Example

See on this commit, if you track application user id at nginx.

And this commit, if you access static file on root.

Requirement

testing-nginx depend on docker-compose.
So you need installing docker.

Install

$ docker-compose build
$ docker-compose up

And try http://localhost.

Usage

Change golang to ruby of application server

You can change language of application server.
Please replace dockerfile path in docker-compose.yml.

   app:
     build:
       context: .
-      dockerfile: ./go/Dockerfile
+      dockerfile: ./ruby/Dockerfile

Contribution

  1. Fork it ( http://github.com/shibukk/testing-nginx/fork )
  2. Create your feature branch ( git checkout -b my-new-feature )
  3. Commit your changes ( git commit -am 'Add some feature' )
  4. Push to the branch ( git push origin my-new-feature )
  5. Create new Pull Request

Licence

MIT

Author

shibukk

About

A configuration file testing of nginx

License:MIT License


Languages

Language:Go 46.4%Language:Dockerfile 33.5%Language:Ruby 19.2%Language:HTML 0.9%