root 2021-05-27 00:44:27 +02:00
commit 0bb8878eef
2 changed files with 5 additions and 3 deletions

View File

@ -20,7 +20,7 @@ server {
location /json { location /json {
alias /api/api/static/templates/header.json; alias /api/api/static/templates/header.json;
add_header Content-Type application/json; default_type application/json;
index header.json; index header.json;
expires max; expires max;
log_not_found off; log_not_found off;
@ -29,7 +29,7 @@ server {
location /header/html { location /header/html {
alias /api/api/static/templates/header.html; alias /api/api/static/templates/header.html;
add_header Content-Type text/html; default_type text/html;
index header.html; index header.html;
expires max; expires max;
log_not_found off; log_not_found off;
@ -38,7 +38,7 @@ server {
location /header/html/nextcloud { location /header/html/nextcloud {
alias /api/api/static/templates/header_nextcloud.html; alias /api/api/static/templates/header_nextcloud.html;
add_header Content-Type text/html; default_type text/html;
index header_nextcloud.html index header_nextcloud.html
expires max; expires max;
log_not_found off; log_not_found off;

View File

@ -6,6 +6,7 @@ global
daemon daemon
log 127.0.0.1 local0 log 127.0.0.1 local0
tune.ssl.default-dh-param 2048 tune.ssl.default-dh-param 2048
h1-case-adjust content-type Content-Type
defaults defaults
mode http mode http
@ -21,6 +22,7 @@ global
backlog 4096 backlog 4096
maxconn 2000 maxconn 2000
option tcpka option tcpka
option h1-case-adjust-bogus-client
frontend website frontend website
mode http mode http