RTFM.WIKI

Ordnung muß sein. Ordnung über alles (18+)

Инструменты пользователя

Инструменты сайта


Stylesheet conf/userstyle.css not found, please contact the developer of "dokuwiki_2024" template.
linux:cockpit

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

linux:cockpit [2020/05/20 11:26] – внешнее изменение 127.0.0.1linux:cockpit [2022/05/19 23:40] (текущий) dx
Строка 1: Строка 1:
 +====== Cockpit + nginx в CentOS 7 ======
  
 +===== Установка =====
 +
 +<code>
 +# yum install cockpit -y
 +# systemctl start cockpit
 +# systemctl enable cockpit.socket
 +</code>
 +
 +===== nginx =====
 +
 +Просто следуем [[https://github.com/cockpit-project/cockpit/wiki/Proxying-Cockpit-over-nginx|инструкции с github]]
 +
 +Добавить в файл ''/etc/cockpit/cockpit.conf''
 +
 +<code>
 +[WebService]
 +Origins = https://cockpit.domain.tld wss://cockpit.domain.tld
 +ProtocolHeader = X-Forwarded-Proto
 +</code>
 +
 +Конечно же не забываем про Let's Encrypt
 +
 +<code>
 +# yum install certbot python2-certbot-nginx
 +# certbot certonly --nginx
 +</code>
 +
 +Конфигурационный файл nginx
 +
 +<code>
 +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;
 +    }
 +}
 +</code>
 +
 +===== Веб-интерфейс =====
 +
 +Логон скрин
 +
 +{{: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 панель_управления}}