Closed acrimat closed 3 years ago
The only thing I had to do was to setup
location / {
proxy_pass http://localhost:8000/
}
and that's about it.
When using docker, keep in mind that all files of paperless are stored inside the image. They are not accessible on the host. The collectstatic step will collect files inside the image and store them inside the image, which has already been done. The webserver that serves the wsgi application of paperless also serves the static files, so there's no need to do anything fancy with that.
If you wish to do any more than that, you have to install paperless without docker.
Also, please keep in mind that serving paperless on a sub URL isn't currently supported, there's some issues with the assets of the front end. See #36.
If this answers your questions, please close the issue.
Dear Dev,
I'm just wondering how would I use nginx with paperless-ng?
Steps I tried with default, unmodified settings (docker-compose.yml):
collect statics:
yes
install and configure nginx
I can navigate to
http://[host-ip]:8000
When I navigate tohttp://[host-ip]
(port 80) I get a white page which statesLoading...
tail /var/log/nginx/paperless_error.log
[files] *: multiple files stated, e.g. styles.css, runtime.js, polyfills.js ...
What am I doing wrong? Any tips are appreciated. Thanks in advance for your time!