Closed cryptoprof closed 5 years ago
Assets are not statically declared by the rendered templates. Besides that, I see several problems with your nginx configuration. So let's start with that.
Implementing a loopback interface via TCP adds overhead to your application. You can cut out the middleman by doing a proxypass from the upstream pool to localhost/billing.
Because it's only your js and CSS assets which aren't loading, try opening your network capture interface when you're loading the site. I'm sure several 404 or 403 errors will pop up. This is because the rails application correctly renders the index relative to where it thinks you'll access it. Because of all the passthroughs and hostname setup, it'll probably be pointing to localhost/assets. This is no fault of OSB. I'd recommend either configuring another nginx location block to correspond to the error pathing or reconfigure OSB.
I have installed open-source-billing with succes, but have a little problem with nginx. When my config looks like this:
all works perfect over localhost:81 When i need to proxy_pass on 80 port, i add to config next:
So, when i go to localhost/billing billing opens, but withou css. And links goes to root without billing. Does have anywhere in config atribute, where can i add this prefix? Thank you for your great software and sorry for my bad english!