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.1 | linux:cockpit [2022/05/19 23:40] (текущий) – dx | ||
---|---|---|---|
Строка 1: | Строка 1: | ||
+ | ====== Cockpit + nginx в CentOS 7 ====== | ||
+ | ===== Установка ===== | ||
+ | |||
+ | < | ||
+ | # yum install cockpit -y | ||
+ | # systemctl start cockpit | ||
+ | # systemctl enable cockpit.socket | ||
+ | </ | ||
+ | |||
+ | ===== nginx ===== | ||
+ | |||
+ | Просто следуем [[https:// | ||
+ | |||
+ | Добавить в файл ''/ | ||
+ | |||
+ | < | ||
+ | [WebService] | ||
+ | Origins = https:// | ||
+ | ProtocolHeader = X-Forwarded-Proto | ||
+ | </ | ||
+ | |||
+ | Конечно же не забываем про Let's Encrypt | ||
+ | |||
+ | < | ||
+ | # yum install certbot python2-certbot-nginx | ||
+ | # certbot certonly --nginx | ||
+ | </ | ||
+ | |||
+ | Конфигурационный файл nginx | ||
+ | |||
+ | < | ||
+ | server { | ||
+ | listen | ||
+ | listen | ||
+ | server_name | ||
+ | ssl_certificate | ||
+ | ssl_certificate_key / | ||
+ | |||
+ | location / { | ||
+ | # Required to proxy the connection to Cockpit | ||
+ | proxy_pass https:// | ||
+ | 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 " | ||
+ | |||
+ | # Pass ETag header from Cockpit to clients. | ||
+ | # See: https:// | ||
+ | gzip off; | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== Веб-интерфейс ===== | ||
+ | |||
+ | Логон скрин | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Фронтпейдж | ||
+ | |||
+ | {{: | ||
+ | |||
+ | И кривой перевод. Надеюсь этот делал бездушный УбитьВсехЧеловеков. | ||
+ | |||
+ | Место аварии | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Счета | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Добавить облигацию | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Именно поэтому я предпочитаю в большинстве случаев английский язык для интерфейса программы или устройства. | ||
+ | |||
+ | Без сторонних плагинов Cockpit на фоне Ajenti или Webmin выглядит довольно скромно, | ||
+ | |||
+ | EOM | ||
+ | |||
+ | {{tag> |