配置
server{
listen 80;
server_name gitlab.xlxs.top;
location / {
proxy_pass http://127.0.0.1:7025;
proxy_set_header Host $host:80;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
链接
ln -s /etc/nginx/sites-available/gitlab /etc/nginx/sites-enabled/gitlab