1 Star 0 Fork 16

ohmysql/golang-blog

forked from golang-007/golang-blog 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nginx.conf 890 Bytes
一键复制 编辑 原始数据 按行查看 历史
anziguoer 提交于 2020-03-27 13:47 . init
upstream web {
server 127.0.0.1:8888;
}
server {
# 将停端口
listen 8888;
server_name www.blog.dd;
charset utf-8;
access_log "/var/log/nginx/blog_access.log";
error_log "/var/log/nginx/blog_error.log";
location ^~ /static/ {
expires max;
log_not_found off;
access_log off;
root "/go/src/golang-blog";
break;
}
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
client_max_body_size 5m;
proxy_pass http://web;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
access_log off;
root "/go/src/golang-blog/";
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/ohmysql/golang-blog.git
git@gitee.com:ohmysql/golang-blog.git
ohmysql
golang-blog
golang-blog
master

搜索帮助