Cockpit: cannot find cockpit.conf

Created on 18 Feb 2018  路  5Comments  路  Source: cockpit-project/cockpit

Hello,

I've been trying to proxy cockpit using nginx but I can't find cockpit.conf in /etc/cockpit/cockpit.conf on ubuntu 16.04.

Most helpful comment

It would be nice if there was a comment in the man page/documentation that indicated that it is by design. It definitely isn't clear currently, I spent a significant amount of time trying to find where the file gets located by install.

All 5 comments

It doesn't exist by default, you have to create it yourself.

Right, this is by design. You usually don't need one, but see man cockpit.conf for available settings.

It would be nice if there was a comment in the man page/documentation that indicated that it is by design. It definitely isn't clear currently, I spent a significant amount of time trying to find where the file gets located by install.

I also spent a significant amount of time trying to find where cockpit.conf might be located. Not all linux distros have the same installation configuration, so when a config file is not in its "default" location, I assume that the documentation didn't specify an exception for my distro and start looking for it elsewhere.

I would like to request that /etc/cockpit/cockpit.conf exist by default, with all default configuration settings listed and commented out. Sample configurations for common overrides would be nice as well, such as making cockpit proxy aware to an nginx reverse_proxy.

Free software is great, having to deal with the "I'd do it the way I like it" is another thing entirely, I always thought 'conf' files always existed by default, with all default configuration settings listed and commented out, but it's not a rule apparently, "let's just make the life of the people using my creation more complicated for no reason at all" seems to be a strange way to gain support from users, I mean cockpit is great, but making people waste time with this stuff it's just....

For the lazy, not-english-natives, slightly dislexic sysadmins with terrible memory like me, here's something useful I came up by myself since I couldn't find clear documentation about it (lack of a file template), the /etc/cockpit/cockpit.conf file should have a [WebService] header and some settings are boolean (true or false), for example:

[WebService]
AllowUnencrypted = true

After saving changes you need to restart cockpit (run 'systemctl restart cockpit'), this disables the https warning if you're just using this in a secure LAN, DO NOT DO THIS if the server is open to the public!

That's all my cockpit.conf file, sorry to the most of you who may see this as extremely obvious, that's cause you know this things, people like me, not necessarily, there may still be 2 or 3 people out there that may find that useful.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Discusal picture Discusal  路  4Comments

q2dg picture q2dg  路  5Comments

kxxoling picture kxxoling  路  5Comments

garrett picture garrett  路  4Comments

FireDrunk picture FireDrunk  路  6Comments