-
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.
new linter and tomcat bump and icons issue
- Loading branch information
1 parent
638a2e7
commit 01acb8a
Showing
12 changed files
with
95 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
The nginx role creates a proxy that listens on port tcp/80 and forwards that traffic either to molgenis running tomcat (backend) or the remote unpkg.com server for the frontend components. | ||
The nginx role creates a proxy that listens on port tcp/80 and forwards that traffic either to molgenis running tomcat (backend) or the remote unpkg.com server for the frontend components. The molgenis-theme frontend needs to be proxy-passed from unpkg otherwise the icons within it will not load properly. So all frontends are redirected except the molgenis-theme that nginx needs to proxy pass. On Ubuntu 22.04 the new OpenSSL >= 3.0.0 will not work properly with old unkpg.com server, we have a workaround in place on a local mirror server unpkg.molgeniscloud.org. |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Special config for OpenSSL >= 3.0.0 servers | ||
# Nginx proxy passes to unpkg.com fail over https due to OpenSSl incompatibility | ||
# Only the theme is proxied, the rest is all retrieved from unpkg.com by clients browser | ||
|
||
location / { | ||
proxy_pass http://localhost:8080; | ||
client_max_body_size 0; | ||
proxy_read_timeout 600s; | ||
proxy_redirect http://localhost:8080/ $scheme://$host/; | ||
proxy_set_header Host $host; | ||
proxy_http_version 1.1; | ||
} | ||
|
||
location /@molgenis-ui/molgenis-theme{ | ||
# This is required because of the theme css being dependant on a relative url to images: 'url("/img/icons-rtl.gif")' which will otherwise be resolved as 'url("https://unpkg.com/img/icons-rtl.gif")' | ||
# Needs to use our own theme/unpkg mirror | ||
|
||
proxy_pass https://unpkg.molgeniscloud.org/@molgenis-ui/molgenis-theme; | ||
{% for app in frontend.proxy0[frontend.version] -%} | ||
rewrite ^/@molgenis-ui/{{- app.split('@')[0] }}/(.*) /@molgenis-ui/{{- app }}/$1; | ||
{% endfor %} | ||
|
||
# do not cache these redirects too long | ||
expires 60m; | ||
} | ||
|
||
location /@molgenis-ui{ | ||
|
||
{% for app in frontend.proxy[frontend.version] -%} | ||
rewrite ^/@molgenis-ui/{{- app.split('@')[0] }}/(.*) https://unpkg.com/@molgenis-ui/{{- app }}/$1 redirect; | ||
{% endfor %} | ||
# extra special frontends below | ||
|
||
} | ||
|
||
{% if frontend.proxy2[frontend.version] is defined -%} | ||
location /@molgenis/ { | ||
|
||
{% for app in frontend.proxy2[frontend.version] -%} | ||
rewrite ^/@molgenis/{{- app.split('@')[0] }}(/(.*))?$ https://unpkg.com/@molgenis/{{- app }}$1 redirect; | ||
{% endfor %} | ||
|
||
} | ||
{% endif %} |
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