Add some DevOps entries in test conf
This commit is contained in:
parent
77a558e13a
commit
204d2a4ecc
1
Makefile
1
Makefile
|
@ -408,6 +408,7 @@ prepare_test_server:
|
|||
@cp -f $(SRCMANAGERDIR)/site/htdocs/manager* e2e-tests/conf/manager
|
||||
@cp -f $(SRCPORTALDIR)/site/htdocs/index* e2e-tests/conf/portal
|
||||
@cp e2e-tests/saml-sp.xml e2e-tests/conf/site/saml-sp.xml
|
||||
@cp e2e-tests/rules.json e2e-tests/conf/site/test.json
|
||||
@for f in $$(find e2e-tests/conf -name '*.fcgi'); do \
|
||||
perl -i -pe 'if($$.==2){print "BEGIN{\n"; print qq(use lib q('`pwd`'/lemonldap-ng-$$_/blib/lib);\n) foreach qw(common handler portal manager); print "}\n"; }' $$f; \
|
||||
done
|
||||
|
|
|
@ -9,6 +9,8 @@ server {
|
|||
include /etc/nginx/fastcgi_params;
|
||||
fastcgi_pass unix:__pwd__/e2e-tests/conf/llng-fastcgi.sock;
|
||||
#fastcgi_pass 127.0.0.1:9090;
|
||||
#fastcgi_param RULES_URL "http://test2.example.com:__port__/test.json";
|
||||
#fastcgi_param VHOSTTYPE "DevOps";
|
||||
|
||||
# Drop post datas
|
||||
fastcgi_pass_request_body off;
|
||||
|
@ -40,6 +42,12 @@ server {
|
|||
include conf/nginx-lua-headers.conf;
|
||||
}
|
||||
|
||||
location /test.json {
|
||||
auth_request off;
|
||||
allow 127.0.0.0/8;
|
||||
deny all;
|
||||
}
|
||||
|
||||
location /rules.json {
|
||||
auth_request off;
|
||||
allow 127.0.0.0/8;
|
||||
|
|
Loading…
Reference in New Issue