Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
aecb7e86
Commit
aecb7e86
authored
Dec 22, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove autoindex option for /static + fix minor typos
parent
aa87f461
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
+10
-9
.gitignore
.gitignore
+2
-1
extractDataCustom.py
services/db_to_tina_api/extractDataCustom.py
+3
-3
comex2_php_and_services.nginx.conf
...ockers/comex2_services/comex2_php_and_services.nginx.conf
+2
-2
test_parametres.php
test_parametres.php
+3
-3
No files found.
.gitignore
View file @
aecb7e86
*.sqlite
*.db
*.pyc
archives_local/*
logs/
logs/services.log
__pycache__/
services/db_to_tina_api/extractDataCustom.py
View file @
aecb7e86
...
...
@@ -9,9 +9,9 @@ from traceback import format_tb
from
.converter
import
CountryConverter
if
__package__
==
"services.db_to_tina_api"
:
from
services.tools
import
mlog
from
services.tools
import
mlog
,
restparse
else
:
from
tools
import
mlog
from
tools
import
mlog
,
restparse
whoswhofilters_to_sqlnames
=
{
...
...
@@ -126,7 +126,7 @@ class MyExtractor:
filter_dict
=
restparse
(
queryargs
)
# debug
#
mlog("DEBUG", "filter: REST query is", filter_dict)
mlog
(
"DEBUG"
,
"filter: REST query is"
,
filter_dict
)
if
"query"
in
filter_dict
and
filter_dict
[
"query"
]
==
"*"
:
# query is "*" <=> all scholars
...
...
setup/dockers/comex2_services/comex2_php_and_services.nginx.conf
View file @
aecb7e86
...
...
@@ -31,7 +31,7 @@ server {
location
~ \.
php
$ {
include
snippets
/
fastcgi
-
php
.
conf
;
fastcgi_pass
unix
:/
run
/
php
/
php7
.
0
-
fpm
.
sock
;
fastcgi_param
SCRIPT_FILENAME
/
comex2
/
$
fastcgi_script_name
;
fastcgi_param
SCRIPT_FILENAME
/
comex2
$
fastcgi_script_name
;
}
# :80/services => subapp via 0.0.0.0:9090/services
...
...
@@ -52,6 +52,6 @@ server {
# faster static serving
location
/
static
{
alias
/
comex2
/
static
/;
autoindex
on
;
#
autoindex on;
}
}
test_parametres.php
View file @
aecb7e86
<?php
include
(
"php_library/parametres.php"
);
echo
"<body><p>behold the final mysql parameters<ul><li>dsn: '
$dsn
',</li> <li>user: '
$user
',</li> <li>pass: '
$pass
',</li> </ul></p></body>"
echo
"<body><p>behold the final mysql parameters<ul><li>dsn: '
$dsn
',</li> <li>user: '
$user
',</li> <li>pass: '
$pass
',</li> </ul></p></body>"
;
var_dump
(
$_ENV
)
var_dump
(
$_ENV
)
;
phpinfo
()
phpinfo
()
;
?>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment