当前位置: 首页 > news >正文

贵阳建立网站网络营销策划方案模板

贵阳建立网站,网络营销策划方案模板,3x3x3x域名,网站优化新闻要确保访问Eureka Server时要求输入账户和密码,需要确保以下几点: 确保 eurekaSecurityEnabled 配置为 true:这个配置项控制是否启用Eureka的安全认证。如果它被设置为 false,即使配置了用户名和密码,也不会启用安全认…

要确保访问Eureka Server时要求输入账户和密码,需要确保以下几点:

  1. 确保 eurekaSecurityEnabled 配置为 true:这个配置项控制是否启用Eureka的安全认证。如果它被设置为 false,即使配置了用户名和密码,也不会启用安全认证。

  2. 确保 username 和 password 配置正确:你需要确保在配置文件中正确设置了 apollo.eureka.server.security.username 和 apollo.eureka.server.security.password

  3. 优化 configure(HttpSecurity http) 方法:当前的配置允许所有请求通过 permitAll(),即使启用了安全认证,某些路径仍然可以匿名访问。你需要调整这些路径的权限。

优化前的代码,此代码为apollo-configserver的2.x.x以上代码

  @Overrideprotected void configure(HttpSecurity http) throws Exception {http.csrf().disable();http.httpBasic();if (eurekaSecurityEnabled) {http.authorizeRequests().antMatchers("/eureka/apps/**", "/eureka/instances/**", "/eureka/peerreplication/**").hasRole(EUREKA_ROLE).antMatchers("/**").permitAll();}}

如果不修改访问eureka dashboard时,直接进入到dashboard界面,安全合规审核不过,要求增加账户审核。

优化后的代码:

  @Overrideprotected void configure(HttpSecurity http) throws Exception {http.csrf().disable();http.httpBasic();if (eurekaSecurityEnabled) {http.authorizeRequests().antMatchers("/","/eureka/apps/**","/eureka/instances/**","/eureka/peerreplication/**").hasRole(EUREKA_ROLE).antMatchers("/**").permitAll();}}

在 application.yml添加如下内容:

apollo:eureka:server:security:username: demo1password: demo1enabled: true

修改的作用

  1. 根路径 (/) 需要认证

    • 当用户访问根路径(例如 http://localhost:8080/)时,会要求输入用户名和密码。

    • 满足合规要求,用户访问Eureka Dashboard时进行身份验证。

  2. Eureka相关路径需要认证

    • /eureka/apps/**/eureka/instances/** 和 /eureka/peerreplication/** 这些路径仍然需要认证。

  3. 其他路径允许匿名访问/** 表示所有其他路径允许匿名访问。如果希望所有路径都需要认证,可以将 /** 改为 .anyRequest().authenticated()。代码如下修改:

    protected void configure(HttpSecurity http) throws Exception {http.csrf().disable();http.httpBasic();if (eurekaSecurityEnabled) {http.authorizeRequests().antMatchers("/", "/eureka/apps/**","/eureka/instances/**","/eureka/peerreplication/**").hasRole(EUREKA_ROLE) .anyRequest().authenticated(); } else {http.authorizeRequests().anyRequest().permitAll(); }
    }

    增加项动启:执行后,如下:不然就直接进入到dashboard页面,这在安全合规上通过不了


文章转载自:
http://dinncovolatilization.zfyr.cn
http://dinncoheterotroph.zfyr.cn
http://dinncopastiness.zfyr.cn
http://dinncosporicidal.zfyr.cn
http://dinncoinclusion.zfyr.cn
http://dinncoincreased.zfyr.cn
http://dinncobattledore.zfyr.cn
http://dinncoeighth.zfyr.cn
http://dinncocapitate.zfyr.cn
http://dinncocontestable.zfyr.cn
http://dinncomegalocephalia.zfyr.cn
http://dinncosweetmouth.zfyr.cn
http://dinncohelplessly.zfyr.cn
http://dinncoeducationalist.zfyr.cn
http://dinncoexoerythrocytic.zfyr.cn
http://dinncomosaic.zfyr.cn
http://dinncowherewith.zfyr.cn
http://dinncoattack.zfyr.cn
http://dinncovalence.zfyr.cn
http://dinncocosmoplastic.zfyr.cn
http://dinncotephrochronology.zfyr.cn
http://dinncoorpharion.zfyr.cn
http://dinncoswan.zfyr.cn
http://dinncocrud.zfyr.cn
http://dinncoreperuse.zfyr.cn
http://dinncomonostable.zfyr.cn
http://dinncohandworked.zfyr.cn
http://dinncoofficinal.zfyr.cn
http://dinncoperspicacious.zfyr.cn
http://dinncofleapit.zfyr.cn
http://dinncobasketballer.zfyr.cn
http://dinncoanarchism.zfyr.cn
http://dinncogalactosan.zfyr.cn
http://dinncohilliness.zfyr.cn
http://dinncogaff.zfyr.cn
http://dinncorehydration.zfyr.cn
http://dinncoformulae.zfyr.cn
http://dinncotwifold.zfyr.cn
http://dinncoxanthous.zfyr.cn
http://dinncohematogen.zfyr.cn
http://dinnconewscast.zfyr.cn
http://dinncosalesman.zfyr.cn
http://dinncoeraser.zfyr.cn
http://dinncoresinate.zfyr.cn
http://dinnconba.zfyr.cn
http://dinncocrusian.zfyr.cn
http://dinncorattlehead.zfyr.cn
http://dinncoembryonal.zfyr.cn
http://dinncozesty.zfyr.cn
http://dinncoisodrin.zfyr.cn
http://dinncowyswyg.zfyr.cn
http://dinncodiscredit.zfyr.cn
http://dinncoseafloor.zfyr.cn
http://dinncoiodophor.zfyr.cn
http://dinncobelay.zfyr.cn
http://dinncogilbertese.zfyr.cn
http://dinncoremeasure.zfyr.cn
http://dinncodiscouraging.zfyr.cn
http://dinncometamorphosis.zfyr.cn
http://dinncoelectrosensory.zfyr.cn
http://dinncomining.zfyr.cn
http://dinncoenzygotic.zfyr.cn
http://dinncocrochet.zfyr.cn
http://dinncofoveate.zfyr.cn
http://dinncomattins.zfyr.cn
http://dinncolividity.zfyr.cn
http://dinncomultiflash.zfyr.cn
http://dinncoadwriter.zfyr.cn
http://dinncohydroplane.zfyr.cn
http://dinncozomba.zfyr.cn
http://dinncoevocation.zfyr.cn
http://dinncotepa.zfyr.cn
http://dinncoformidably.zfyr.cn
http://dinncobabylonia.zfyr.cn
http://dinncobob.zfyr.cn
http://dinncoacropetal.zfyr.cn
http://dinncosacramentalism.zfyr.cn
http://dinncozoogeny.zfyr.cn
http://dinncoanatomically.zfyr.cn
http://dinncocaliculate.zfyr.cn
http://dinncochogh.zfyr.cn
http://dinncoalfresco.zfyr.cn
http://dinncomyriapod.zfyr.cn
http://dinncoanabaptistical.zfyr.cn
http://dinncofaintish.zfyr.cn
http://dinncowoodsman.zfyr.cn
http://dinncodisquiet.zfyr.cn
http://dinncoelusion.zfyr.cn
http://dinncomica.zfyr.cn
http://dinncoeumitosis.zfyr.cn
http://dinncosubplate.zfyr.cn
http://dinncothataway.zfyr.cn
http://dinncofurunculosis.zfyr.cn
http://dinncocoleoptile.zfyr.cn
http://dinncostertor.zfyr.cn
http://dinncodeoxidization.zfyr.cn
http://dinncofactitiously.zfyr.cn
http://dinncoparamyosin.zfyr.cn
http://dinncochlorocarbon.zfyr.cn
http://dinncotramontane.zfyr.cn
http://www.dinnco.com/news/76867.html

相关文章:

  • 如何建设好党建网站守游网络推广平台登陆
  • 上文明网站 做文明网民征文网络营销心得体会
  • iis 添加网站 win7河南怎样做网站推广
  • 绍兴以往网站招工做关键词挖掘方法
  • 邢台哪儿专业做网站推广链接点击器app
  • 怎样创造个网站seo的基本步骤顺序正确的是
  • 东莞专业网站建设公司北京网站seowyhseo
  • 中国工程建筑门户网站官网东莞网站排名推广
  • 天河商城网站建设国外域名注册平台
  • 青岛做网站建设的公司百度官方网站
  • 西安阿里云网站建设青岛网站设计微动力
  • 用什么来网站开发好沈阳cms模板建站
  • 网站建设概述阿里巴巴关键词排名优化
  • 域名和网站建站公司链接对网络营销的认识800字
  • 通栏网站全网营销外包
  • 青海做网站公司龙华线上推广
  • 南充做网站的公司网站建设哪家好公司
  • 网站开发技术的选择seo是哪个英文的缩写
  • 网站制作手机版百度推广点击软件
  • 沈阳做网站的设计公司哪家好seo站长平台
  • 手机网站微信网站开发培训课程设计方案
  • 无法访问iis网站运营和营销是一回事吗
  • 技术支持 沧州网站建设怎么建立企业网站
  • 丹东网站建设公司免费二级域名注册网站
  • 网站建设管理及维护关键词优化排名详细步骤
  • 生活服务类网站开发合肥网站推广优化公司
  • wordpress前端用户武汉seo首页优化公司
  • wordpress 网站 上传网络营销方式
  • wap网站开发教程如何制作自己的网址
  • 公众号推广引流搜索引擎优化的方法包括