Add a Dockerfile for frontend test container; adapt code to simplify synchronization or Docker linkage
This commit is contained in:
parent
6c69867bcc
commit
bca09af2e0
15 changed files with 329 additions and 218 deletions
4
nginx_gen_team.sh
Normal file → Executable file
4
nginx_gen_team.sh
Normal file → Executable file
|
|
@ -3,4 +3,6 @@
|
|||
# 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; }@'
|
||||
cd $(dirname "$0")
|
||||
|
||||
curl http://localhost/$(grep prefix_admin onyx/config/root.xml | sed -E 's@.*<var.*>(.*)</var>.*@\1@')/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