6 Star 48 Fork 22

Tomato_Simon/智能小区管理系统

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nginx.conf 3.15 KB
一键复制 编辑 原始数据 按行查看 历史
Tomato_Simon 提交于 2021-09-23 18:54 . add nginx.conf
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
#upstream myserver{
#server 192.168.17.131:8080;
#server 192.168.17.131:8081;
#}
server {
listen 80;
server_name 120.76.172.71;
#charset koi8-r;
#access_log logs/host.access.log main;
# 负载均衡
#location / {
#proxy_pass http://myserver;
#root html;
# index index.html index.htm;
#}
# 前端地址
location /cms/ {
proxy_pass http://127.0.0.1:8080/;
}
# 后端地址
location /api/ {
proxy_pass http://39.98.110.22:8081/;
}
# elsearch地址
location /els/ {
rewrite /els/(.*) /$1 break;
proxy_pass http://127.0.0.1:9200;
}
# 报表地址
location /report/ {
rewrite /report/(.*) /$1 break;
proxy_pass http://39.98.110.22:5601;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# location / {
# root html;
# index index.html index.htm;
# }
#}
# HTTPS server
#
#server {
# listen 443 ssl;
# server_name localhost;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.htm;
# }
#}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/tomato-simon/community-management-system.git
git@gitee.com:tomato-simon/community-management-system.git
tomato-simon
community-management-system
智能小区管理系统
master

搜索帮助