cockpit: Make the application usable

All users can login. Only admin users can see logs and make changes.

LIMITATION: Only certain functions such as service management is possible.
Functions such as networking and user management is read-only. This problem does
not occur for user belonging to the 'sudo' group.

- Move to system section from applications section.

- Rename action script to cockpit instead of cockpit.

- Deal with .socket/.service correctly.

- Implement hooks on domain name changes and update configuration correctly.

- Host the application under /_cockpit instead of /cockpit because it is
  reserved.

- Update description.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2017-11-06 06:54:52 -05:00
1 parent 44cf56c222
commit e4aa77d9f2
6 files changed
+211 -170

No files matched your search

@@ -0,0 +1,16 @@
##
## On all sites, provide cockpit on the path: /_cockpit/
##
## Requires the following Apache modules to be enabled:
## mod_headers
## mod_proxy
## mod_proxy_http
## mod_proxy_wstunnel
##
<Location /_cockpit/>
ProxyPass http://localhost:9090/_cockpit/
</Location>
<Location /_cockpit/cockpit/socket>
ProxyPass ws://localhost:9090/_cockpit/socket
</Location>
@@ -1,21 +0,0 @@
##
## On all sites, provide cockpit on a defaut path: /cockpit
##
## Requires the following Apache modules to be enabled:
## mod_headers
## mod_proxy
## mod_proxy_http
## mod_proxy_wstunnel
##
<Location /cockpit>
proxypass http://localhost:9090/
</Location>
<Location /cockpit/>
proxypass http://localhost:9090/cockpit/
</Location>
<Location /cockpit/socket>
proxypass ws://localhost:9090/cockpit/socket
</Location>