====== Cockpit + nginx в CentOS 7 ======
===== Установка =====
# yum install cockpit -y
# systemctl start cockpit
# systemctl enable cockpit.socket
===== nginx =====
Просто следуем [[https://github.com/cockpit-project/cockpit/wiki/Proxying-Cockpit-over-nginx|инструкции с github]]
Добавить в файл ''/etc/cockpit/cockpit.conf''
[WebService]
Origins = https://cockpit.domain.tld wss://cockpit.domain.tld
ProtocolHeader = X-Forwarded-Proto
Конечно же не забываем про Let's Encrypt
# yum install certbot python2-certbot-nginx
# certbot certonly --nginx
Конфигурационный файл nginx
server {
listen 80;
listen 443 ssl;
server_name cockpit.domain.tld;
ssl_certificate /etc/letsencrypt/live/cockpit.domain.tld/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/cockpit.domain.tld/privkey.pem;
location / {
# Required to proxy the connection to Cockpit
proxy_pass https://127.0.0.1:9090;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
# Required for web sockets to function
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Pass ETag header from Cockpit to clients.
# See: https://github.com/cockpit-project/cockpit/issues/5239
gzip off;
}
}
===== Веб-интерфейс =====
Логон скрин
{{:linux:centos:cockpit_1.png?nolink&900|}}
Фронтпейдж
{{:linux:centos:cockpit_2.png?nolink&900|}}
И кривой перевод. Надеюсь этот делал бездушный УбитьВсехЧеловеков.
Место аварии
{{:linux:centos:cockpit_3.png?nolink|}}
Счета
{{:linux:centos:cockpit_4.png?nolink|}}
Добавить облигацию
{{:linux:centos:cockpit_5.png?nolink|}}
Именно поэтому я предпочитаю в большинстве случаев английский язык для интерфейса программы или устройства.
Без сторонних плагинов Cockpit на фоне Ajenti или Webmin выглядит довольно скромно, и кроме как just for fun юзкейса у меня для него не нашлось.
EOM
{{tag>centos nginx cockpit control_panel панель_управления}}