-
Notifications
You must be signed in to change notification settings - Fork 0
/
ngnix.conf
36 lines (28 loc) · 792 Bytes
/
ngnix.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
# Expires map
map $sent_http_content_type $expires {
default off;
text/html epoch;
text/css max;
application/javascript max;
}
server {
# Listen HTTP
listen 80;
listen [::]:80;
server_name www.beekeeping-news.com beekeeping-news.com;
# Redirect HTTP to HTTPS
return 301 https://$host$request_uri;
}
server {
server_name www.beekeeping-news.com beekeeping-news.com;
expires $expires;
access_log off;
location = /robots.txt { access_log off; log_not_found off; }
location = /favicon.ico { access_log off; log_not_found off; }
listen [::]:443 ssl http2;
listen 443 ssl http2;
root /var/www/beekeeping-news.com/dist;
index index.html;
location / {
}
}