This repository has been archived by the owner on Oct 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from ldsec/dev
MedCo v1.0.0
- Loading branch information
Showing
14 changed files
with
93 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
conf.d/servers.conf | ||
conf.d/common/server-revproxy.conf.inc | ||
conf.d/common/server-revproxy-base.conf.inc | ||
conf.d/common/server-revproxy-dev.conf.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# do not send out web server info | ||
server_tokens off; | ||
|
||
# various HTTP headers for enhanced security | ||
add_header 'X-Frame-Options' 'sameorigin' always; | ||
add_header 'X-XSS-Protection' '1; mode=block' always; | ||
add_header 'X-Content-Type-Options' 'nosniff' always; | ||
add_header 'Content-Security-Policy' 'default-src \'self\' \'unsafe-inline\' \'unsafe-eval\'; connect-src *' always; | ||
|
||
# prevent disallowed HTTP methods | ||
if ($request_method !~* (GET|POST|OPTIONS|HEAD|DELETE|PUT)) { | ||
return 405; | ||
} | ||
|
||
# TODO | ||
## Content-Security-Policy: allow connect-src to other MedCo node; | ||
## Feature-Policy: blacklist unused features (most of them) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
docker-images/nginx/conf.d/common/server-revproxy-dev.conf.inc.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
location /pgadmin { | ||
set $upstream_host pg-admin; | ||
proxy_pass http://$upstream_host; | ||
proxy_set_header X-Script-Name /pgadmin; | ||
proxy_redirect http://$upstream_host/pgadmin /pgadmin; | ||
} | ||
|
||
location /i2b2 { | ||
set $upstream_host i2b2; | ||
proxy_pass http://$upstream_host:8080; | ||
} | ||
|
||
location /local-3nodes/medco-0 { | ||
include /etc/nginx/conf.d/common/cors.inc; | ||
set $upstream_host medco-connector-srv0; | ||
rewrite /local-3nodes/medco-0/(.*) /medco/$1 break; | ||
proxy_pass http://$upstream_host:1999; | ||
} | ||
|
||
location /local-3nodes/medco-1 { | ||
include /etc/nginx/conf.d/common/cors.inc; | ||
set $upstream_host medco-connector-srv1; | ||
rewrite /local-3nodes/medco-1/(.*) /medco/$1 break; | ||
proxy_pass http://$upstream_host:1999; | ||
} | ||
|
||
location /local-3nodes/medco-2 { | ||
include /etc/nginx/conf.d/common/cors.inc; | ||
set $upstream_host medco-connector-srv2; | ||
rewrite /local-3nodes/medco-2/(.*) /medco/$1 break; | ||
proxy_pass http://$upstream_host:1999; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters