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;

}

}

}

相关推荐
(:满天星:)2 小时前
第31篇:块设备与字符设备管理深度解析(基于OpenEuler 24.03)
linux·运维·服务器·网络·centos
小陶来咯2 小时前
【仿muduo库实现并发服务器】Acceptor模块
运维·服务器
cui_hao_nan2 小时前
Docker后端部署
运维·docker·容器
ZZH1120KQ2 小时前
Linux系统安全及应用
linux·运维·系统安全
小扎仙森3 小时前
关于服务器宝塔转移wordperss子比主题问题
运维·服务器
小小小糖果人3 小时前
Linux云计算基础篇(5)
linux·运维·服务器
我不是哆啦A梦3 小时前
破解风电运维“百模大战”困局,机械版ChatGPT诞生?
运维·人工智能·python·算法·chatgpt
weixin_7714323113 小时前
linux系统 weblogic10.3.6(jar) 下载及安装
linux·运维·jar
绝不偷吃4 小时前
FastDFS分布式储存
linux·nginx
scuter_yu4 小时前
主流零信任安全产品深度介绍
运维·网络·安全