-
Notifications
You must be signed in to change notification settings - Fork 5
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 #92 from medizininformatik-initiative/contextpaths…
…-portal Support portal subdomain and context path deployment
- Loading branch information
Showing
16 changed files
with
322 additions
and
123 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
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,6 +1,13 @@ | ||
# Set separate hostnames if 'subdomains.nginx.conf' is used (see FEASIBILITY_PORTAL_PROXY_NGINX_CONFIG below). | ||
# For 'context-paths.nginx.conf' these values are ignored. | ||
BACKEND_HOSTNAME=api.datenportal.localhost | ||
KEYCLOAK_HOSTNAME=auth.datenportal.localhost | ||
GUI_HOSTNAME=datenportal.localhost | ||
PROXY_CERTIFICATE_PATH=../auth/cert.pem | ||
PROXY_CERTIFICATE_KEY_PATH=../auth/key.pem | ||
PROXY_NGINX_CONFIG_PATH=./nginx.conf | ||
|
||
# Comment one of the FEASIBILITY_PORTAL_PROXY_NGINX_CONFIG depending if it is used 'subdomains.nginx.conf' or 'context-paths.nginx.conf' | ||
FEASIBILITY_PORTAL_PROXY_NGINX_CONFIG=./subdomains.nginx.conf | ||
#FEASIBILITY_PORTAL_PROXY_NGINX_CONFIG=./context-paths.nginx.conf | ||
FEASIBILITY_PORTAL_PROXY_CERTIFICATE_PATH=../auth/cert.pem | ||
FEASIBILITY_PORTAL_PROXY_CERTIFICATE_KEY_PATH=../auth/key.pem | ||
|
||
|
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,12 +1,22 @@ | ||
server { | ||
server { | ||
listen 8443 ssl; | ||
http2 on; | ||
server_name ${BACKEND_HOSTNAME}; | ||
|
||
listen 8443 ssl; | ||
server_name ${BACKEND_HOSTNAME}; | ||
|
||
location / { | ||
proxy_pass http://feasibility-gui-backend:8090/; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header X-Forwarded-Host $host; | ||
} | ||
# redirect server error pages to the static page /50x.html | ||
# | ||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root /usr/share/nginx/html; | ||
} | ||
|
||
location / { | ||
#Used with 'subdomains.nginx.conf' | ||
proxy_pass http://feasibility-gui-backend:8090/; | ||
|
||
#Used with 'context-paths.nginx.conf' | ||
#set $backend_upstream http://feasibility-gui-backend:8090; | ||
#proxy_pass http://$backend_upstream$request_uri; | ||
} | ||
|
||
} |
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,17 +1,23 @@ | ||
server { | ||
listen 8443 ssl; | ||
http2 on; | ||
server_name ${GUI_HOSTNAME}; | ||
|
||
listen 8443 ssl; | ||
server_name ${GUI_HOSTNAME}; | ||
# redirect server error pages to the static page /50x.html | ||
# | ||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root /usr/share/nginx/html; | ||
} | ||
|
||
location / { | ||
proxy_pass http://dataportal-ui:8080/; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header Host $host; | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
proxy_read_timeout 86400; | ||
} | ||
location / { | ||
#Used with 'subdomains.nginx.conf' | ||
proxy_pass http://dataportal-ui:8080/; | ||
|
||
#Used with 'context-paths.nginx.conf' | ||
#set $gui_upstream http://dataportal-ui:8080; | ||
#proxy_pass http://$gui_upstream$request_uri; | ||
|
||
} | ||
|
||
} |
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,30 +1,21 @@ | ||
server { | ||
listen 8443 ssl; | ||
http2 on; | ||
server_name ${KEYCLOAK_HOSTNAME}; | ||
|
||
listen 8443 ssl; | ||
server_name ${KEYCLOAK_HOSTNAME}; | ||
# redirect server error pages to the static page /50x.html | ||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root /usr/share/nginx/html; | ||
} | ||
|
||
location / { | ||
proxy_buffers 4 128k; | ||
proxy_busy_buffers_size 128k; | ||
proxy_buffer_size 64k; | ||
proxy_pass http://auth:8080; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header X-Forwarded-Host $host; | ||
proxy_set_header X-Forwarded-Port $server_port; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
} | ||
location / { | ||
#Used with 'subdomains.nginx.conf' | ||
proxy_pass http://auth:8080; | ||
|
||
#location /keycloakadmin { | ||
# proxy_buffers 4 128k; | ||
# proxy_busy_buffers_size 128k; | ||
# proxy_buffer_size 64k; | ||
# proxy_pass http://auth:8080; | ||
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
# proxy_set_header X-Forwarded-Proto $scheme; | ||
# proxy_set_header X-Forwarded-Host $host; | ||
# proxy_set_header X-Forwarded-Port $server_port; | ||
# proxy_set_header X-Real-IP $remote_addr; | ||
# } | ||
#Used with 'context-paths.nginx.conf' | ||
#set $auth_upstream http://auth:8080; | ||
#proxy_pass http://$auth_upstream$request_uri; | ||
} | ||
|
||
} |
Oops, something went wrong.