Страница 1 из 1

отключить https в cockpit

Добавлено: 19 июн 2024, 18:09
ya

Код: Выделить всё

ln -s /lib/systemd/system/cockpit.service /etc/systemd/system/cockpit.service
ln -s /lib/systemd/system/cockpit.socket /etc/systemd/system/cockpit.socket
закомментировать в файле /etc/systemd/system/cockpit.service две строки
cockpit-wsinstance-https-factory.socket
mcedit /etc/systemd/system/cockpit.service

Код: Выделить всё

[Unit]
Description=Cockpit Web Service
Documentation=man:cockpit-ws(8)
Requires=cockpit.socket
Requires=cockpit-wsinstance-http.socket cockpit-wsinstance-http-redirect.socket 
#cockpit-wsinstance-https-factory.socket
After=cockpit-wsinstance-http.socket cockpit-wsinstance-http-redirect.socket 
#cockpit-wsinstance-https-factory.socket

[Service]
RuntimeDirectory=cockpit/tls
# systemd ≥ 241 sets this automatically
Environment=RUNTIME_DIRECTORY=/run/cockpit/tls
ExecStartPre=+/usr/sbin/remotectl certificate --ensure --user=root --group=cockpit-ws --selinux-type=
ExecStart=/usr/lib/cockpit/cockpit-tls
User=cockpit-ws
Group=cockpit-ws
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
PrivateDevices=true
ProtectKernelTunables=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
MemoryDenyWriteExecute=true
systemctl daemon-reload
systemctl restart cockpit
systemctl status cockpit