New script to generate nginx.conf part

This commit is contained in:
nemunaire 2014-01-21 03:08:08 +01:00
commit 8d7394b833
7 changed files with 108 additions and 29 deletions

3
nginx_gen_team.sh Normal file
View file

@ -0,0 +1,3 @@
#!/bin/sh
curl http://localhost/admin/teams/export 2> /dev/null | grep "<name id" | sed -E 's@^.*id="([0-9]+)".*>(.*)<.*$@ if ($ssl_client_s_dn ~ "/C=FR/ST=France/O=Epita/OU=SRS/CN=\2/") { set $team \1; }@'