Skip to content

Accessing Cockpit interface through both NGINX and local subnet ip #21455

Answered by martinpitt
SirH2Os asked this question in Q&A
Discussion options

You must be logged in to vote

In your proxy setup, do you start /usr/libexec/cockpit-ws yourself, or still use the cockpit.socket systemd unit? But in either case you may try to not set Origins and AllowUnencrypted in cockpit.conf, and instead run cockpit-ws with the --for-tls-proxy option (see https://cockpit-project.org/guide/latest/cockpit-ws.8.html). If you use the systemd unit, you can create an /etc/systemd/system/cockpit.service.d/proxy.conf to change the ExecStart= line.

Please make sure that cockpit's own port only listens on localhost then, i.e. is not exposed to the internet (ListenStream or firewall).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SirH2Os
Comment options

Answer selected by SirH2Os
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants