55 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| assigned: ''
 | |
| created: 2024-07-26T23:21:44.132Z
 | |
| progress: 0
 | |
| tags:
 | |
|   - Hosts
 | |
| type: note
 | |
| updated: 2024-11-13T01:47:38.000Z
 | |
| ---
 | |
| 
 | |
| # Cockpit
 | |
| 
 | |
| - [cockpit](https://cockpit-project.org/)
 | |
| - [running](https://cockpit-project.org/running)
 | |
| - [podman](https://192.168.11.2:9090/podman#/?container=all)
 | |
| 
 | |
| ```bash Fri Jul 26 2024 15:45:00 GMT-0700 (Mountain Standard Time)
 | |
| apt-cache rdepends cockpit
 | |
| apt install cockpit -y
 | |
| passwd phares
 | |
| apt-get install cockpit cockpit-podman -y
 | |
| systemctl enable --now cockpit.socket
 | |
| ```
 | |
| 
 | |
| ## Cockpit SSL
 | |
| 
 | |
| - [Proxying-Cockpit-over-NGINX](https://cockpit-project.org/external/wiki/Proxying-Cockpit-over-NGINX)
 | |
| 
 | |
| ```bash 1731356291510 = 638669530915100000 = Mon Nov 11 2024 13:18:11 GMT-0700 (Mountain Standard Time)
 | |
| systemctl restart cockpit.service
 | |
| systemctl restart cockpit.socket
 | |
| nano /etc/cockpit/cockpit.conf
 | |
| ```
 | |
| 
 | |
| conf 1731356299846 = 638669530998460000 = Mon Nov 11 2024 13:18:19 GMT-0700 (Mountain Standard Time)
 | |
| [WebService]
 | |
| Origins = https://cockpit.affirm.duckdns.org wss://cockpit.affirm.duckdns.org
 | |
| ProtocolHeader = X-Forwarded-Proto
 | |
| ```
 | |
| 
 | |
| ```bash 1731358497471 = 638669552974710000 = Mon Nov 11 2024 13:54:57 GMT-0700 (Mountain Standard Time)
 | |
| mv /etc/cockpit/ws-certs.d/0-self-signed.cert /etc/cockpit/ws-certs.d/0-self-signed.cert.old
 | |
| cp /root/.acme.sh/wild-affirm/affirm.duckdns.org.cer /etc/cockpit/ws-certs.d/0-self-signed.cert
 | |
| mv /etc/cockpit/ws-certs.d/0-self-signed.key /etc/cockpit/ws-certs.d/0-self-signed.key.old
 | |
| cp /root/.acme.sh/wild-affirm/affirm.duckdns.org.key /etc/cockpit/ws-certs.d/0-self-signed.key
 | |
| chmod 774 -R /etc/cockpit/ws-certs.d
 | |
| systemctl stop cockpit.socket
 | |
| systemctl stop cockpit
 | |
| journalctl --rotate
 | |
| journalctl --vacuum-time=1s
 | |
| journalctl -u cockpit
 | |
| systemctl start cockpit.socket
 | |
| systemctl start cockpit
 | |
| ```
 |