-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
46 lines (36 loc) · 922 Bytes
/
nginx.conf
File metadata and controls
46 lines (36 loc) · 922 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
39
40
41
42
43
44
45
46
worker_processes 1;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location = /code {
try_files /code.html =404;
}
location = /user {
try_files /user.html =404;
}
location = /write {
try_files /write.html =404;
}
location = /edit {
try_files /edit.html =404;
}
location = /teacher {
try_files /teacher.html =404;
}
location / {
try_files $uri $uri/ /index.html;
}
# 정적 파일 캐싱
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
}
}