Changeset View
Changeset View
Standalone View
Standalone View
modules/docs/chronik.e.cash/nginx.conf
- This file was added.
# Copyright (c) 2014 The Bitcoin developers | |||||
# Distributed under the MIT software license, see the accompanying | |||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | |||||
gzip on; | |||||
gzip_vary on; | |||||
gzip_proxied any; | |||||
gzip_comp_level 9; | |||||
gzip_buffers 16 8k; | |||||
gzip_http_version 1.1; | |||||
gzip_min_length 256; | |||||
gzip_types | |||||
application/atom+xml | |||||
application/geo+json | |||||
application/javascript | |||||
application/x-javascript | |||||
application/json | |||||
application/ld+json | |||||
application/manifest+json | |||||
application/rdf+xml | |||||
application/rss+xml | |||||
application/xhtml+xml | |||||
application/xml | |||||
font/eot | |||||
font/otf | |||||
font/ttf | |||||
image/svg+xml | |||||
text/css | |||||
text/javascript | |||||
text/plain | |||||
text/xml; | |||||
server { | |||||
listen 80; | |||||
location / { | |||||
root /usr/share/nginx/html; | |||||
index index.html index.htm; | |||||
location ~ index\.html$ { | |||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"; | |||||
add_header X-Frame-Options "DENY" always; | |||||
add_header X-Content-Type-Options "nosniff" always; | |||||
add_header Referrer-Policy "strict-origin-when-cross-origin"; | |||||
add_header Content-Security-Policy "default-src https: wss: 'unsafe-inline' 'unsafe-eval'; img-src 'self' https: data:;"; | |||||
} | |||||
try_files $uri $uri/ /index.html; | |||||
} | |||||
} |