gitlab 禁止下载压缩包和 单文件
时间:2021-01-06 14:05:02
收藏:0
阅读:338
##gitlab配置禁止下载压缩包
nginx[‘custom_gitlab_server_config‘] = "location ~* \.(archive|raw) {return 404; }\n"
##注意archive为压缩包目录 ,raw为单文件目录,如果只需要禁止压缩包 :"location ~* \.(archive) {return 404; }\n"
原文:https://www.cnblogs.com/Yning/p/14240128.html
评论(0)