diff --git a/deployment/nginx/huginn b/deployment/nginx/huginn index 8e6b8413..eedc933e 100644 --- a/deployment/nginx/huginn +++ b/deployment/nginx/huginn @@ -59,8 +59,7 @@ server { ## WARNING: If you are using relative urls remove the block below ## See config/application.rb under "Relative url support" for the list of ## other files that need to be changed for relative url support - location ~ ^/(assets)/ { - root /home/huginn/huginn/public; + location /assets/ { gzip_static on; # to serve pre-gzipped version expires max; add_header Cache-Control public; diff --git a/deployment/nginx/huginn-ssl b/deployment/nginx/huginn-ssl index 7da9e801..addf2be0 100644 --- a/deployment/nginx/huginn-ssl +++ b/deployment/nginx/huginn-ssl @@ -108,8 +108,7 @@ server { ## WARNING: If you are using relative urls remove the block below ## See config/application.rb under "Relative url support" for the list of ## other files that need to be changed for relative url support - location ~ ^/(assets)/ { - root /home/huginn/huginn/public; + location /assets/ { gzip_static on; # to serve pre-gzipped version expires max; add_header Cache-Control public;