![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Nginx
小杨的博客
Gitee链接:https://gitee.com/Yang_Mr_R
CSDN链接:https://blog.csdn.net/super_this_part
展开
-
Spring Cloud Zuul入门
首先配置好2个服务,一个用于登录的login-server,一个用来测试的test-server,具体逻辑代码自己写,这里要注意的一点是,按照Zuul的思想是:只做服务的转发,不做页面的转发。也就是说只做RestController注解的Mapping,不做View的跳转,当然,要跳转的话也是可以的,没啥区别,但是不符合Zuul的思想,这个的话看个人。页面跳转如果没有做前后端分离,可以放置在一个专...原创 2020-01-17 17:36:21 · 150 阅读 · 0 评论 -
Nginx做反向代理以及解决跨域问题
原文:https://www.cnblogs.com/java-spring/p/9965227.html Ningx的配置文件nginx.conf: worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type ...原创 2020-01-16 19:09:44 · 214 阅读 · 0 评论 -
docker-compose搭建Nginx并配置CDN
docker-compose.yml 文件 version: '3.1' services: nginx: image: nginx container_name: nginx ports: - 80:80 volumes: - ./conf/nginx.conf:/etc/nginx/nginx.conf ...原创 2020-01-02 13:19:24 · 1029 阅读 · 2 评论