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
0180fdfd
Commit
0180fdfd
authored
Nov 30, 2016
by
PkSM3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remote deployment requires nginx reverse proxy for doors server for the ajax to workgit add -u
parent
d0058365
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
84 deletions
+11
-84
doors_testserver_config.md
doc/doors_testserver_config.md
+0
-74
comex_and_registration.nginx_deployed.conf
setup/comex_and_registration.nginx_deployed.conf
+9
-8
docker-compose.yml
setup/dockers/docker-compose.yml
+2
-2
No files found.
doc/doors_testserver_config.md
deleted
100644 → 0
View file @
d0058365
#### Why and what?
After comex-reg setup, one may want to run a doors server to interact with.
1) To do that we need to install doors
2) Doors is served by a jetty server so we need to do a few things
## Doors installation
First you'll need to install sbt (for scala builds): see http://www.scala-sbt.org/
```bash
# any installation dir is ok...
cd /~
git clone https://github.com/ISCPIF/doors.git
cd doors/application
sbt
```
Then we build and run the scala app in sbt command line
```
sbt
project lab
run
```
## Server conf
### If nginx
see more info in the
[
nginx doc for a jetty
](
https://www.nginx.com/resources/wiki/start/topics/examples/javaservers
)
#### gist
```
proxy_pass http://localhost:8080; # <== jetty app referenced by nginx
```
### If apache
see more info in the
[
jetty doc for apache
](
http://wiki.eclipse.org/Jetty/Tutorial/Apache#Configuring_Apache
)
#### Required apache mod
```
sudo a2enmod proxy_ajp # <= needed for proxy relay
```
#### Expected apache conf
```
TODO
## Doors status protocol
**TODO**
DOORS callDoors
// need to handle the various return formats
// then send one of 2 * 2 possibilities (+ unknown exceptions)
// action | response
// login login ok
// login can't login
// register register ok
// register can't register
// register login exists // ML remark : this is redundant
// TODO verif protocole de statuts
```
setup/comex_and_registration.nginx_deployed.conf
View file @
0180fdfd
...
...
@@ -54,13 +54,14 @@ server {
deny
all
;
}
#location /testdocker {
# proxy_pass http://0.0.0.0:32789;
# proxy_redirect off;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Host $server_name;
#}
# for minidoors api
location
/
api
{
proxy_pass
http
://
0
.
0
.
0
.
0
:
32789
;
proxy_redirect
off
;
proxy_set_header
Host
$
host
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_set_header
X
-
Forwarded
-
Host
$
server_name
;
}
}
setup/dockers/docker-compose.yml
View file @
0180fdfd
...
...
@@ -32,8 +32,8 @@
-
HOST=0.0.0.0
# script will bind server to this address
-
DEBUG_FLAG=false
-
SQL_HOST=comex_db_backend
# script will read/write sql to this host
-
DOORS_HOST=
localhost
-
DOORS_PORT=
32789
# forwarded port we're accessing
in tests
-
DOORS_HOST=
134.158.75.71
-
DOORS_PORT=
80
# forwarded port we're accessing via ajax
in tests
# POSSIBLE add php legacy communityexplorer site
# (currently served in parallel: see doc/nginx_conf.md)
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