Spaces:
Running
Running
rogerxavier
commited on
Commit
•
baf7f39
1
Parent(s):
2371bb9
Create nginx.conf
Browse files- nginx.conf +17 -0
nginx.conf
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
pid /tmp/nginx.pid;
|
2 |
+
|
3 |
+
events {
|
4 |
+
worker_connections 1024;
|
5 |
+
}
|
6 |
+
|
7 |
+
http {
|
8 |
+
server {
|
9 |
+
listen 7860;
|
10 |
+
server_name localhost;
|
11 |
+
|
12 |
+
location /jmComic.json {
|
13 |
+
alias /usr/share/nginx/html/jmComic.json; # 指定jmComic.json的路径
|
14 |
+
default_type application/json; # 设置返回类型为JSON
|
15 |
+
}
|
16 |
+
}
|
17 |
+
}
|