-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
37 lines (28 loc) · 998 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
server {
# Listen to port 443 on both IPv4 and IPv6.
listen 443 ssl;
# Domain names this server should respond to.
server_name literature.org www.literature.org;
# Load the certificate files.
ssl_certificate /etc/letsencrypt/live/literature/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/literature/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/literature/chain.pem;
# Load the Diffie-Hellman parameter.
ssl_dhparam /etc/letsencrypt/dhparams/dhparam.pem;
gzip on;
gzip_types text/html application/javascript text/css application/json;
gzip_static on;
include mime.types;
types {
application/xml opf;
}
location ~* /index.html$ {
try_files $uri /templates/index.html;
}
location /. {
return 404;
}
root /usr/share/nginx/www.literature.org;
index index.html /templates/index.html;
expires 1d;
}