From c390497d8127190ea6f56873c3fa28b86b53f39d Mon Sep 17 00:00:00 2001 From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com> Date: Wed, 3 Feb 2021 10:02:36 +0100 Subject: [PATCH] feat: update nginx conf for ghost --- nginx/dev.conf | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/nginx/dev.conf b/nginx/dev.conf index 4d727b257..bb472e0c2 100644 --- a/nginx/dev.conf +++ b/nginx/dev.conf @@ -23,9 +23,9 @@ server { sub_filter '</head>' '$matomo_script</head>'; } - location /api { - rewrite ^/api/(.*) /$1 break; - proxy_pass http://service-ram:3000/api; + location /api { + rewrite ^/api/(.*) /$1 break; + proxy_pass http://service-ram:3000/api; } location /base-adresse/base-adresse-nationale/streets { @@ -45,6 +45,13 @@ server { proxy_pass https://download.data.grandlyon.com/wfs/grandlyon; } + location ~* (/ghost) { + expires epoch; + proxy_no_cache 1; + proxy_pass http://ghost:2368; + } + + # REALLY important for JavaScript modules (type="module") to work as expected!!! location ~ \.js { -- GitLab