-
Notifications
You must be signed in to change notification settings - Fork 7
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 #51 from jembi/plat-224-reverse-proxy-improvements
PLAT-224 - reverse proxy improvements
- Loading branch information
Showing
14 changed files
with
623 additions
and
117 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
18 changes: 18 additions & 0 deletions
18
interoperability-layer-openhim/config/http-openhim-insecure.conf
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,18 @@ | ||
# OpenHIM Core HTTP server config | ||
server { | ||
listen 5001; | ||
client_max_body_size 10M; | ||
|
||
location / { | ||
proxy_pass http://openhim-core:5001; | ||
} | ||
} | ||
|
||
# OpenHIM Console | ||
server { | ||
listen 80; | ||
|
||
location / { | ||
proxy_pass http://openhim-console:80; | ||
} | ||
} |
93 changes: 93 additions & 0 deletions
93
interoperability-layer-openhim/config/http-openhim-secure.conf
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,93 @@ | ||
# OpenHIM Core API server config | ||
server { | ||
listen 80; | ||
server_name openhimcomms.*; | ||
|
||
location /.well-known/acme-challenge/ { | ||
resolver 127.0.0.11 valid=30s; | ||
set $upstream_certbot certbot; | ||
proxy_pass http://$upstream_certbot$request_uri; | ||
} | ||
|
||
location / { | ||
return 301 https://$host$request_uri; | ||
} | ||
} | ||
server { | ||
listen 443 ssl; | ||
listen [::]:443 ssl; | ||
server_name openhimcomms.*; | ||
|
||
location /.well-known/acme-challenge/ { | ||
resolver 127.0.0.11 valid=30s; | ||
set $upstream_certbot certbot; | ||
proxy_pass http://$upstream_certbot$request_uri; | ||
} | ||
|
||
location / { | ||
proxy_pass https://openhim-core:8080; | ||
} | ||
} | ||
|
||
# OpenHIM Core HTTP server config | ||
server { | ||
listen 80; | ||
server_name openhimcore.*; | ||
|
||
location /.well-known/acme-challenge/ { | ||
resolver 127.0.0.11 valid=30s; | ||
set $upstream_certbot certbot; | ||
proxy_pass http://$upstream_certbot$request_uri; | ||
} | ||
|
||
location / { | ||
return 301 https://$host$request_uri; | ||
} | ||
} | ||
server { | ||
listen 443 ssl; | ||
listen [::]:443 ssl; | ||
server_name openhimcore.*; | ||
client_max_body_size 10M; | ||
|
||
location /.well-known/acme-challenge/ { | ||
resolver 127.0.0.11 valid=30s; | ||
set $upstream_certbot certbot; | ||
proxy_pass http://$upstream_certbot$request_uri; | ||
} | ||
|
||
location / { | ||
proxy_pass https://openhim-core:5000; | ||
} | ||
} | ||
|
||
# OpenHIM Console | ||
server { | ||
listen 80; | ||
server_name openhimconsole.*; | ||
|
||
location /.well-known/acme-challenge/ { | ||
resolver 127.0.0.11 valid=30s; | ||
set $upstream_certbot certbot; | ||
proxy_pass http://$upstream_certbot$request_uri; | ||
} | ||
|
||
location / { | ||
return 301 https://$host$request_uri; | ||
} | ||
} | ||
server { | ||
listen 443 ssl; | ||
listen [::]:443 ssl; | ||
server_name openhimconsole.*; | ||
|
||
location /.well-known/acme-challenge/ { | ||
resolver 127.0.0.11 valid=30s; | ||
set $upstream_certbot certbot; | ||
proxy_pass http://$upstream_certbot$request_uri; | ||
} | ||
|
||
location / { | ||
proxy_pass http://openhim-console:80; | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
interoperability-layer-openhim/config/stream-openhim-insecure.conf
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,5 @@ | ||
# use a stream so don't terminate ssl here | ||
server { | ||
listen 8080; | ||
proxy_pass openhim-core:8080; | ||
} |
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
Oops, something went wrong.