forked from lcharles123/nem-homepage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
executable file
·38 lines (32 loc) · 824 Bytes
/
nginx.conf
File metadata and controls
executable file
·38 lines (32 loc) · 824 Bytes
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
38
user nginx;
events {
worker_connections 4096; ## Default: 1024
}
http {
root /var/www/nem-homepage;
include /etc/nginx/mime.types;
default_type text/html;
charset UTF-8;
gzip on;
gzip_min_length 1000;
gzip_proxied any;
gzip_types text/plain text/html text/css text/xml
application/x-javascript application/xml
application/atom+xml text/javascript;
server {
listen 80;
server_name www.nem.io nem.io;
error_log /var/www/nginx_www.error.log;
error_page 404 /404.html;
location / {
root /var/www/nem-homepage;
index index.html;
}
location = /404.html {
root /var/www/nem-homepage;
}
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
expires 1d;
}
}
}