Document some script + centralize script configuration
This commit is contained in:
parent
9a57642029
commit
96805a5e1b
7 changed files with 48 additions and 14 deletions
|
|
@ -1,3 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Generate from database (exported XML from the website) the part of nginx
|
||||
# configuration file authenticating teams
|
||||
|
||||
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