Skip to content

Commit

Permalink
[Fix #163] -- Nginx proxies /ui/fonts to directory bootstrap/fonts
Browse files Browse the repository at this point in the history
It is a workaround applied until we do #185
  • Loading branch information
feroda committed Oct 14, 2015
1 parent c3d7d21 commit beb4db3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions proxy/site.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ server {
expires max;
}

location /ui/fonts/ {
proxy_pass http://front:5000/libs/bower_components/bootstrap/fonts/;
expires max;
}

location /ui/ {
proxy_pass http://front:5000;
expires max;
Expand Down
5 changes: 5 additions & 0 deletions proxy/site.conf.dev
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ server {
proxy_pass http://front:5000/libs/bower_components/;
}

location /ui/fonts/ {
proxy_pass http://front:5000/libs/bower_components/bootstrap/fonts/;
expires max;
}

location /ui/ {
proxy_pass http://front:5000;
}
Expand Down

1 comment on commit beb4db3

@feroda
Copy link
Contributor Author

@feroda feroda commented on beb4db3 Oct 15, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

appunto il commento by @kobe25:

a parte che é una porcheria (ma lo sarebbe stato anche fare un symlink) é sbagliato usare la cache nella versione in sviluppo

questo commento aiuterà chi deve risolvere il problema in modo stabile

Please sign in to comment.