forked from artnc/personal-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
35 lines (27 loc) · 770 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
server {
listen 80;
listen [::]:80;
server_name chaidarun.com;
return 302 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/ssl/cert.pem;
ssl_certificate_key /etc/ssl/key.pem;
server_name chaidarun.com;
root /var/www/html;
index index.html;
location / {
try_files $uri $uri.html $uri/index.html =404;
}
location /isso {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Script-Name /isso;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:8080;
}
rewrite ^/resume$ https://chaidarun.com/files/ArtChaidarun-WebResume.pdf redirect;
error_page 404 /404.html;
}