#!/bin/bash cat << EOT | sudo tee /etc/cockpit/cockpit.conf [WebService] Origins = https://cor.cherished.me wss://cor.cherished.me ProtocolHeader = X-Forwarded-Proto UrlRoot=/cpt-$(hostname) EOT sudo systemctl restart cockpit.socket