From 7e01b711ad71daba1b7fb270062dd89a39dc77ea Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Mon, 7 Oct 2024 15:41:53 +0200 Subject: [PATCH] [IMP] runbot: add charset to content-type This commit adds the utf-8 Content-Type to nginx response headers for txt files. That way, the logs files can be properly viewed in browsers. --- runbot/templates/nginx.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runbot/templates/nginx.xml b/runbot/templates/nginx.xml index 1512973e..daa4e8c0 100644 --- a/runbot/templates/nginx.xml +++ b/runbot/templates/nginx.xml @@ -7,6 +7,7 @@ error_log /error.log; worker_processes 1; events { worker_connections 1024; } http { +charset utf-8; include /etc/nginx/mime.types; server_names_hash_max_size 512; server_names_hash_bucket_size 256; @@ -25,6 +26,8 @@ autoindex on; gzip on; gzip_types text/css text/plain application/xml application/json application/javascript; +charset_types text/plain; + map $http_x_forwarded_proto $real_scheme { default $http_x_forwarded_proto; '' $scheme;