nginx 配置

http {

include mime.types;

default_type application/octet-stream;

sendfile on;

#tcp_nopush on;

#keepalive_timeout 0;

keepalive_timeout 65;

#upstream nacos {

#server 192.168.0.213:8848;

#server 192.168.0.214:8848;

#server 192.168.0.215:8848;

#server 192.168.0.216:8848;

#}

upstream auth{

server 192.168.0.212:8765;

}

server {

listen 80;

server_name localhost;

#charset koi8-r;

#access_log logs/host.access.log main;

location / {

root D:/html;

index index.html index.htm;

proxy_read_timeout 300;

}

location /jwt/ {

proxy_pass http://auth/jwt/;

}

location /api/ {

proxy_pass http://auth/api/;

}

location /websocket/ {

proxy_pass http://auth/api/admin/mq/;

}

location /image/ {

root D:/;

autoindex on;

}

error_page 500 502 503 504 /50x.html;

location = /50x.html {

root html;

}

}

}

相关推荐
愚润求学7 分钟前
【Linux】数据链路层 and 其他知识
linux·运维·网络
Amelio_Ming17 分钟前
systemd-journald和rsyslogd日志配置详解
linux·运维·服务器
九皇叔叔1 小时前
Linux Shell 中的 $():命令替换的核心用法
linux·运维·chrome
liulilittle2 小时前
Linux内核网络优化:两个网络调优解决方案
linux·运维·服务器·网络·内核·信息与通信·通信
hweiyu002 小时前
Linux运维实战:系统及服务管理(视频教程)
linux·运维·服务器
有谁看见我的剑了?2 小时前
k8s ingress-nginx 学习
学习·nginx·kubernetes
柳鲲鹏3 小时前
交叉编译:strip: Unable to recognise the format of the input file xx.c.o
linux·运维·服务器
Le1Yu3 小时前
微服务拆分以及注册中心
linux·运维·服务器
zzzsde4 小时前
【Linux】linux基础指令入门(1)
linux·运维·学习
moxiaoran57534 小时前
nginx中proxy_pass配置
运维·服务器·nginx