New script to generate nginx.conf part
This commit is contained in:
parent
cc588d51f9
commit
8d7394b833
7 changed files with 108 additions and 29 deletions
3
nginx_gen_team.sh
Normal file
3
nginx_gen_team.sh
Normal 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; }@'
|
||||
Reference in a new issue