ismism/nginx.conf

41 lines
691 B
Nginx Configuration File
Raw Permalink Normal View History

events {
worker_connections 64;
multi_accept on;
2023-12-12 17:57:55 +08:00
}
http { # 配置 HTTP 服务
access_log log/access.log combined; # 日志文件的位置和格式
error_log log/error.log error;
2023-12-12 17:57:55 +08:00
types {
text/html html;
}
2023-12-12 17:57:55 +08:00
upstream ismism { # 服务
server 127.0.0.1:728;
keepalive 2;
}
2023-12-12 17:57:55 +08:00
server {
listen 80 default_server;
2023-12-12 17:57:55 +08:00
root ui; # 静态文件的根目录
2023-12-12 17:57:55 +08:00
location = / { # "http://localhost"
try_files /index.html =444;
}
2023-12-12 17:57:55 +08:00
# "http://localhost/mod/marked.js" -> /ui/mod/marked.js
location /mod {}
2023-12-12 17:57:55 +08:00
# "http://localhost/q?que="adm" -> http://127.0.0.1:728/q?que="adm"
location /q {
proxy_pass http://ismism;
2023-12-12 17:57:55 +08:00
}
location /p {
proxy_pass http://ismism;
2023-12-12 17:57:55 +08:00
}
}
2023-12-12 17:57:55 +08:00
}