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
2c49dfe2
Commit
2c49dfe2
authored
Jan 25, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Basic SSL support for inner and outer nginx + for ajax with new doors
parent
4d011cea
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
9 deletions
+29
-9
comex_and_registration.nginx_deployed.conf
setup/comex_and_registration.nginx_deployed.conf
+9
-1
Dockerfile
setup/dockers/comex2_services/Dockerfile
+1
-3
comex2_php_and_services.nginx.conf
...ockers/comex2_services/comex2_php_and_services.nginx.conf
+12
-4
docker-compose.yml
setup/dockers/docker-compose.yml
+3
-0
comex_user_shared_auth.js
static/js/comex_user_shared_auth.js
+4
-1
No files found.
setup/comex_and_registration.nginx_deployed.conf
View file @
2c49dfe2
...
...
@@ -3,9 +3,17 @@
server
{
listen
80
;
listen
[::]:
80
;
listen
443
ssl
;
listen
[::]:
443
ssl
;
# SSL certificates
# self-signed certificates for the moment
include
snippets
/
snakeoil
.
conf
;
# uncomment future certificates for https://communityexplorer.org
# ssl_certificate /etc/ssl/cert/ssl-future-comex.pem;
# ssl_certificate_key /etc/ssl/private/ssl-future-comex.key;
# server_name communityexplorer.org;
server_name
_
;
# get the logs in a custom place
# (adapt paths)
...
...
setup/dockers/comex2_services/Dockerfile
View file @
2c49dfe2
...
...
@@ -14,7 +14,7 @@ RUN dpkg-reconfigure locales
# Install global dependencies and utilities
RUN
apt update
&&
apt autoclean
RUN
apt
install
-y
python3-pip libmysqlclient-dev git nano tree iputils-ping nginx-full php7.0-fpm php7.0-mysql
RUN
apt
install
-y
python3-pip libmysqlclient-dev git nano tree iputils-ping nginx-full php7.0-fpm php7.0-mysql
ssl-cert
# Configure php fpm to allow environment variables (uncomment removing the ';')
RUN
mv
/etc/php/7.0/fpm/pool.d/www.conf /etc/php/7.0/fpm/pool.d/www.conf.bak
...
...
@@ -53,6 +53,4 @@ CMD bash run.sh
# nginx server (redirecting to php AND services)
EXPOSE
80
# TODO SSL configuration
EXPOSE
443
setup/dockers/comex2_services/comex2_php_and_services.nginx.conf
View file @
2c49dfe2
...
...
@@ -4,10 +4,17 @@ server {
listen
80
default_server
;
listen
[::]:
80
default_server
;
# TODO SSL configuration
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
# include snippets/snakeoil.conf;
# SSL
listen
443
ssl
default_server
;
listen
[::]:
443
ssl
default_server
;
# SSL certificates
# self-signed certificates for the moment
include
snippets
/
snakeoil
.
conf
;
# uncomment future certificates for https://communityexplorer.org
# ssl_certificate /etc/ssl/cert/ssl-future-comex.pem;
# ssl_certificate_key /etc/ssl/private/ssl-future-comex.key;
root
/
comex2
;
...
...
@@ -17,6 +24,7 @@ server {
# we'll be using php but still index is an html file in comex2 anyway
index
index
.
html
;
# TODO check if this is not too permissive
server_name
_
;
...
...
setup/dockers/docker-compose.yml
View file @
2c49dfe2
...
...
@@ -35,6 +35,9 @@
-
../../config:/comex2/config
# similar logic used to expose inner logs
-
../../logs:/comex2/logs
# and to pass the ssl keys
-
/etc/ssl/certs/:/etc/ssl/certs/
-
/etc/ssl/private/:/etc/ssl/private/
environment
:
# override values from parametres_comex.ini
# for a double reason:
...
...
static/js/comex_user_shared_auth.js
View file @
2c49dfe2
...
...
@@ -326,10 +326,13 @@ cmxClt = (function(cC) {
"name"
:
nameStr
}
var
scheme
=
cC
.
uauth
.
protoDoors
?
'http'
:
'https'
$
.
ajax
({
contentType
:
cC
.
uauth
.
protoDoors
?
"application/json"
:
"application/x-www-form-urlencoded; charset=UTF-8"
,
dataType
:
'json'
,
url
:
"http://"
+
cC
.
uauth
.
doorsConnectParam
+
"/api/"
+
apiAction
,
url
:
scheme
+
"://"
+
cC
.
uauth
.
doorsConnectParam
+
"/api/"
+
apiAction
,
data
:
cC
.
uauth
.
protoDoors
?
JSON
.
stringify
(
sendData
)
:
sendData
,
type
:
'POST'
,
// traditional: !cC.uauth.protoDoors,
...
...
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