Fixing issue where nginx was not sending the right mimetype for CSS files.

This commit is contained in:
kevgliss 2015-07-19 19:03:04 -07:00
parent 14b62a145a
commit 8e0e22d49d
3 changed files with 14 additions and 3 deletions

View File

@ -4,9 +4,14 @@ Frequently Asked Questions
Common Problems
---------------
In my startup logs I see *'Aborting... Lemur cannot locate db encryption key, is ENCRYPTION_KEY set?'*
You likely have not correctly configured **ENCRYPTION_KEY**. See
:doc:`administration/configuration` for more information.
In my startup logs I see *'Aborting... Lemur cannot locate db encryption key, is LEMUR_ENCRYPTION_KEY set?'*
You likely have not correctly configured **LEMUR_ENCRYPTION_KEY**. See
:doc:`administration/index` for more information.
I am seeing Lemur's javascript load in my browser but not the CSS.
Ensure that you are placing *include mime.types;* to your Nginx static file location. See
:doc:`production/index` for example configurations.
How do I

View File

@ -107,6 +107,7 @@ You can make some adjustments to get a better user experience::
location / {
root /www/lemur/lemur/static/dist;
include mime.types;
index index.html;
}
@ -172,6 +173,7 @@ sensitive nature of Lemur and what it controls makes this essential. This is a s
location / {
root /www/lemur/lemur/static/dist;
include mime.types;
index index.html;
}
@ -204,6 +206,9 @@ An example apache config::
Also included in the configurations above are several best practices when it comes to deploying SSL. Things like enabling
HSTS, disabling vulnerable ciphers are all good ideas when it comes to deploying Lemur into a production environment.
.. note::
This is a rather incomplete apache config for running Lemur (needs mod_wsgi etc.,), if you have a working apache config please let us know!
.. seealso::
`Mozilla SSL Configuration Generator <https://mozilla.github.io/server-side-tls/ssl-config-generator/>`_

View File

@ -147,6 +147,7 @@ You'll use the builtin HttpProxyModule within Nginx to handle proxying
location / {
root /www/lemur/lemur/static/dist;
include mime.types;
index index.html;
}