diff --git a/nginx/default.conf b/nginx/default.conf
index 9a251d6562c73b3fc4021ff2694a86c3bf6926a8..a421c86a35da7f98bbf824b9127f17f610ff5ac9 100644
--- a/nginx/default.conf
+++ b/nginx/default.conf
@@ -14,6 +14,11 @@ map $http_user_agent $outdated {
   "~Chrome/3[0-3]\."                      1;
 }
 
+map $http_user_agent $prerender {
+  default                                 0;
+  "~*linkedinbot"                         1;
+}
+
 server {
   listen 8080 default_server;
 
@@ -33,8 +38,14 @@ server {
   #allow 80.14.51.82;      # Erasme
   #deny all;
 
-  location ^~ /actualites/details/ {
-      proxy_pass http://res-client-service:8080/api/render/;
+  # prerender news post for linkedin
+  location ~ ^/actualites/details/(.*)$ {
+    if ($prerender = 1) {
+      # For use of proxy_pass within a regular expression location, cf. https://stackoverflow.com/a/53354944
+      proxy_pass http://res-client-service:8080/api/render/$1;
+    }
+
+    try_files $uri $uri/ /index.html;
   }
   
   location /data-grandlyon-cities {
diff --git a/nginx/local.conf b/nginx/local.conf
index 01f1e4683d0fc484119ce924aa6c6ebaf9ab1e56..0047fe059e3eba7a17ed8450d5fb4a86b199083c 100644
--- a/nginx/local.conf
+++ b/nginx/local.conf
@@ -14,15 +14,26 @@ map $http_user_agent $outdated {
   "~Chrome/3[0-3]\."                      1;
 }
 
+map $http_user_agent $prerender {
+  default                                 0;
+  "~*linkedinbot"                         1;
+}
+
 server {
   listen 8080 default_server;
 
   root /usr/share/nginx/html/;
 
-  location ^~ /actualites/details/ {
-      proxy_pass http://web-app:8080/api/render/;
+  # prerender news post for linkedin
+  location ~ ^/actualites/details/(.*)$ {
+    if ($prerender = 1) {
+      # For use of proxy_pass within a regular expression location, cf. https://stackoverflow.com/a/53354944
+      proxy_pass http://172.17.0.1:8030/api/render/$1;
+    }
+
+    try_files $uri $uri/ /index.html;
   }
-  
+
   location /data-grandlyon-cities {
     proxy_pass https://data.grandlyon.com/fr/datapusher/ws/grandlyon/adr_voie_lieu.adrcomgl/all.json;
   }