#
# This file is managed by Puppet. Local edits will be lost.
#

server {
  listen      80;
  server_name <%= @server_name %>;
  root        <%= @files_root %>;
  autoindex   off;
  charset     utf-8;

  access_log  /opt/nginx/logs/<%= @server_name %>.access.log combined;
  error_log   /opt/nginx/logs/<%= @server_name %>.error.log;

  <% if @ssl %>
    <%= scope.function_template(['hdo/nginx-ssl-conf.erb']) %>
  <% end %>

  location / {
    <% if @cors %>
      <%= scope.function_template(['hdo/nginx-cors.conf']) %>
    <% end %>
  }

  location ~ /pdf/(alternative-statsbudsjett|partiprogram) {
    autoindex on;
  }

  location /pdf/retriever/utbrytere {
    autoindex on;
  }

  location /prototyper/enighet {
    return 301 https://enighet.holderdeord.no/;
  }
}

#
# This file is managed by Puppet. Local edits will be lost.
#

server {
  listen      80;
  server_name <%= @server_name %>;
  root        <%= @files_root %>;
  autoindex   off;

  charset       utf-8;
  charset_types text/html text/xml text/plain text/vnd.wap.wml application/javascript application/rss+xml application/json;

  access_log  /opt/nginx/logs/<%= @server_name %>.access.log combined;
  error_log   /opt/nginx/logs/<%= @server_name %>.error.log;

  <% if @ssl %>
    <%= scope.function_template(['hdo/nginx-ssl-conf.erb']) %>
  <% end %>

  location / {
    <% if @cors %>
      <%= scope.function_template(['hdo/nginx-cors.conf']) %>
    <% end %>
  }

  location ~ /pdf/(alternative-statsbudsjett|partiprogram) {
    autoindex on;
  }

  location /pdf/retriever/utbrytere {
    autoindex on;
  }

  location /prototyper/enighet {
    return 301 https://enighet.holderdeord.no/;
  }
}

Add charset_types to files vhost
Add charset_types to files vhost
