mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 15:35:46 +07:00
[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.
This commit is contained in:
parent
f8f435d468
commit
dc79235fc9
@ -7,6 +7,7 @@ error_log <t t-esc="nginx_dir"/>/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;
|
||||
|
Loading…
Reference in New Issue
Block a user