Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
- Replace branding path
Browse files Browse the repository at this point in the history
Signed-off-by: johnsonw <wjohnson@whamcloud.com>
  • Loading branch information
johnsonw committed Jun 20, 2020
1 parent 588f7b9 commit ab2f4bd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
2 changes: 2 additions & 0 deletions iml-config/src/nginx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const TEMPLATE_VARS: &[&str] = &[
"GRAFANA_PROXY_PASS",
"INFLUXDB_PROXY_PASS",
"TIMER_PROXY_PASS",
"BRANDING_PATH",
"INCLUDES",
];

Expand Down Expand Up @@ -121,6 +122,7 @@ mod tests {
env::set_var("GRAFANA_PROXY_PASS", "http://127.0.0.1:3000");
env::set_var("INFLUXDB_PROXY_PASS", "http://127.0.0.1:8086");
env::set_var("TIMER_PROXY_PASS", "http://127.0.0.1:8892");
env::set_var("BRANDING_PATH", "ddn-favicons");
env::set_var("INCLUDES", "");

let config = replace_template_variables(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ server {

gzip_comp_level 5;

location /favicon.ico {
alias /usr/lib/iml-manager/iml-gui/favicon.ico;
}

location /certificate/ {
return 301 https://$http_host/certificate;
}
Expand Down Expand Up @@ -410,5 +406,25 @@ server {
location / {
try_files $uri $uri/ /index.html;
}
location ~ ^.*/favicon(.*) {
alias /usr/share/iml-manager/rust-iml-gui/ddn-favicons/favicon$1;
}

location ~ ^.*/android-chrome(.*) {
alias /usr/share/iml-manager/rust-iml-gui/ddn-favicons/android-chrome$1;
}

location ~ ^.*/apple-touch-icon.png {
alias /usr/share/iml-manager/rust-iml-gui/ddn-favicons/apple-touch-icon.png;
}

location ~ ^.*/mstile-150x150.png {
alias /usr/share/iml-manager/rust-iml-gui/ddn-favicons/mstile-150x150.png;
}

location ~ ^.*/safari-pinned-tab.svg {
alias /usr/share/iml-manager/rust-iml-gui/ddn-favicons/safari-pinned-tab.svg;
}
}

0 comments on commit ab2f4bd

Please sign in to comment.