大网数据广告活动
服务器运维问答

Self host gitlab using caddy

· 52CE 我爱测

I'm trying to install and host gitlab, but it requires and pulls in Nginx. Which would be fine, except I use Caddy and Caddy doesn't play well with Nginx and has to be disabled for Nginx to even start. I like Caddy a lot, especia…

问题原文

原帖链接 · unixandria · CC BY-SA 4.0

I'm trying to install and host gitlab, but it requires and pulls in Nginx. Which would be fine, except I use Caddy and Caddy doesn't play well with Nginx and has to be disabled for Nginx to even start.

I like Caddy a lot, especially the built in file server, so just switching completely to Nginx isn't an option. I also have no interest in trying to do firewall redirects to try to use Nginx on a nonstandard port.

Is there any way to use gitlab without nginx, eg Caddy? There's no official documentation and the last thing I tried from an online forum completely broke my gitlab install and only pertained to Apache which I'm not using

My system is a dedicated cloud server running Ubuntu 20.04.

已采纳解答

原帖链接 · Ayush Agrawal · CC BY-SA 4.0

The answer from unixandria is correct for when it's from. Things have changed a little since then.

There's now this official section on GitLab Docs.

Also, GitLab 13.5 changed the location of the unix socket, so the Caddyfile should have this now:

git.example.com {
    reverse_proxy unix//var/opt/gitlab/gitlab-workhorse/sockets/socket
}

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-08-18)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。