mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +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
5b70e91043
commit
7e01b711ad
@ -7,6 +7,7 @@ error_log <t t-esc="nginx_dir"/>/error.log;
|
|||||||
worker_processes 1;
|
worker_processes 1;
|
||||||
events { worker_connections 1024; }
|
events { worker_connections 1024; }
|
||||||
http {
|
http {
|
||||||
|
charset utf-8;
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
server_names_hash_max_size 512;
|
server_names_hash_max_size 512;
|
||||||
server_names_hash_bucket_size 256;
|
server_names_hash_bucket_size 256;
|
||||||
@ -25,6 +26,8 @@ autoindex on;
|
|||||||
gzip on;
|
gzip on;
|
||||||
gzip_types text/css text/plain application/xml application/json application/javascript;
|
gzip_types text/css text/plain application/xml application/json application/javascript;
|
||||||
|
|
||||||
|
charset_types text/plain;
|
||||||
|
|
||||||
map $http_x_forwarded_proto $real_scheme {
|
map $http_x_forwarded_proto $real_scheme {
|
||||||
default $http_x_forwarded_proto;
|
default $http_x_forwarded_proto;
|
||||||
'' $scheme;
|
'' $scheme;
|
||||||
|
Loading…
Reference in New Issue
Block a user