Skip to content
#

zap

Here are 183 public repositories matching this topic...

miming1688
miming1688 commented Nov 27, 2020

在nginx环境下, 网站上的图形或字体加载不了, 显示为方框. 配置问题, fontawesome图标字体库组件在服务器上显示不出来图标的问题.

先看看路径是否加载失败. .ttf 和.woff 文件, 确认路径正确

找到 nginx的配置文件 ,ps -ef | grep nginx

文件名 default_*.conf

加上

location ~* \.(eot|otf|ttf|woff|svg)$ {
        root    /home/web/waimai/; #项目路径, 必须加上, 除非你只有一个项目,默认80端口.
        add_header Access-Control-Allow-Origin *;
}

基于 Gin 进行模块化设计的 API 框架,封装了常用功能,使用简单,致力于进行快速的业务研发。比如,支持 cors 跨域、jwt 签名验证、zap 日志收集、panic 异常捕获、trace 链路追踪、prometheus 监控指标、swagger 文档生成、viper 配置文件解析、gorm 数据库组件、gormgen 代码生成工具、graphql 查询语言、errno 统一定义错误码、gRPC 的使用 等等。

  • Updated Mar 13, 2021
  • Go

[https://www.sofineday.com], golang项目开发脚手架,集成最佳实践(gin+gorm+go-redis+mongo+cors+jwt+json日志库zap(支持日志收集到kafka或mongo)+消息队列kafka+微信支付宝支付gopay+api加密+api反向代理+go modules依赖管理+headless爬虫chromedp+makefile+二进制压缩+livereload热加载)

  • Updated Oct 30, 2020
  • Go

Improve this page

Add a description, image, and links to the zap topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the zap topic, visit your repo's landing page and select "manage topics."

Learn more