Commit Graph
48 Commits
Author SHA1 Message Date
yan b38500fad8 Add development Dockerfile and instructions 2015-08-03 16:26:22 -07:00
yan 24f9da5275 Add support and tests for some Nginx config edge cases
1. Match "if" statements
2. Allow special characters in nginx directives when enclosed in single or
   double quotes.
2015-05-18 17:58:28 -04:00
yan f4144f0017 Update docs to reflect nginx support 2015-05-12 12:05:17 -07:00
yan dfb94613bf Add nginx server block for target_name if one doesn't exist 2015-05-08 17:30:34 -07:00
yan f7116a7388 Reduce logging severity for unparseable config files 2015-05-08 12:36:32 -07:00
yan 1533eea351 Start nginx if it's not already running 2015-05-08 12:34:48 -07:00
yan 4dc566a871 Update vhost object when making nginx SSL block 2015-05-07 18:30:50 -07:00
yan cf48791686 Address @kuba review comments 2015-05-05 23:57:40 -07:00
yan 6f4af62f61 Add dvsni tests 2015-05-05 23:40:40 -07:00
yan 23d27f4659 Bump min nginx version to 0.8.48
We are assuming that if a server_name isn't specified, it matches the empty
string. Prior to 0.8.48, it would match the machine's hostname.
2015-05-05 23:40:40 -07:00
yan 4c09b9882f Add docs for Nginx plugin stub 2015-04-21 10:31:25 -07:00
yan 6a0dc2b960 Improve comments based on PR #351 review 2015-04-20 11:04:58 -07:00
yan 18582e8ca0 Fix tuple comparison, add ssl check in nginx get_version 2015-04-20 10:58:02 -07:00
yan 4bcc18d9d3 Address @kuba's review comments 2015-04-18 10:22:36 -07:00
yan 636f5aa313 Remove commented-out code in nginx dvsni.py 2015-04-17 23:21:55 -07:00
yan c67f1c11b4 Update LICENSE.txt for nginxparser attribution 2015-04-17 22:24:19 -07:00
yan f3126e77a7 Fix duplicate code lint errors 2015-04-17 22:24:19 -07:00
yan 995b5622f8 Fix most pylint errors 2015-04-17 22:24:19 -07:00
yan 1505f5e7bc Empty format field not allowed in python 2.6 2015-04-17 22:24:19 -07:00
yan 03e5f3c6c6 Add default nginx config files from Ubuntu 2015-04-17 22:24:19 -07:00
yan 78458b1348 Add nginx obj.py test 2015-04-17 22:24:19 -07:00
yan f05771b704 Add placeholder dvsni tests to bump coverage % 2015-04-17 22:24:19 -07:00
yan f83a77d8ad Add regex servername test, correct conf syntax
Running the configtest (nginx -c -t /path/to/nginx.conf) should now say "The
configuration file /path/to/nginx.conf syntax is ok"
2015-04-17 22:24:19 -07:00
yan f050fcfa58 Add unit test for deploying cert 2015-04-17 22:24:19 -07:00
yan eeb81cbf1f Remove vhosts instance variable
For now, rebuild vhosts from parser.parsed on every invocation to ensure that
vhosts is up-to-date with parser.parsed.
2015-04-17 22:24:19 -07:00
yan 154db5a757 Start adding tests for nginx configurator 2015-04-17 22:24:19 -07:00
yan d2588de4fd Add get_all_certs_keys method to parser 2015-04-17 22:24:19 -07:00
yan fe1ba9dad6 Add test for nginx name matching 2015-04-17 22:24:18 -07:00
yan d9c8c13f9a Fix and add test for get_vhosts 2015-04-17 22:24:18 -07:00
yan e5a027ce30 Make nginx deploy_cert 2015-04-17 22:24:18 -07:00
yan 2a9c707dbd Update method to make server SSL ready 2015-04-17 22:24:18 -07:00
yan 7b72262811 Fix nginx choose_vhost to use nginx host-choosing rules 2015-04-17 22:24:18 -07:00
yan 3c806b120a Update configurator.save and configurator.get_all_names 2015-04-17 22:24:18 -07:00
yan 2a86936410 Delete unused methods or replace with placeholders 2015-04-17 22:22:06 -07:00
yan 0ba12c9f46 Fix typo: _get_vhosts -> get_vhosts 2015-04-17 22:21:14 -07:00
yan efe1f2b2ff Fill out get_vhosts 2015-04-17 22:18:57 -07:00
yan 4f53c7a3c0 Define addr object for nginx 2015-04-17 22:18:56 -07:00
yan d8ac31acae Add method and test for dumping nginx configs 2015-04-17 22:18:56 -07:00
yan 4f3bf3d720 Add test for recursive file parsing 2015-04-17 22:18:56 -07:00
yan eaef4065e3 Rename NginxParser to RawNginxParser 2015-04-17 22:18:56 -07:00
yan b245394355 Add test server.conf file 2015-04-17 22:18:56 -07:00
yan 13232452f8 Add recursive 'include' parsing to nginx parser 2015-04-17 22:18:56 -07:00
yan 61b98210f9 Mark semiprivate methods in configurator 2015-04-17 22:18:56 -07:00
yan 8caf03dcbb Update nginxparser test, remove other tests for now 2015-04-17 22:18:56 -07:00
yan d36d0eeb30 Group nginx configurator methods more logically 2015-04-17 22:18:13 -07:00
yan 2460f85dbe Add save and reverter methods 2015-04-16 13:47:26 -07:00
yan 33ff366171 Remove redirect enhancement, fix reload 2015-04-16 13:47:26 -07:00
yan 37649966c2 Nginx versioning and other config changes 2015-04-16 13:47:26 -07:00