Samba for Cockpit
SEYSOFT
Share folders with Windows, Mac and Linux computers from your browser inside Cockpit. Manage Samba shares and users without smb.conf.
by SEYSOFT · Version 1.0.0
Manage the nginx web server from your browser inside Cockpit: static sites, reverse proxies, config editing and logs, with rollback.
A module for Cockpit that manages the nginx web server from the browser, so you don't have to edit config files over SSH. It is built to look like a factory Cockpit page (PatternFly 6) and follows Cockpit's light and dark setting.
It is self-contained: nothing else needs to be installed, it makes no network connections of its own, and it needs no account, repository or other module. It does not install nginx for you. If nginx is missing, the page tells you (sudo dnf install nginx). It is static files only (HTML, CSS and JavaScript), with no compiled code and no scripts run at install time.
nginx -t)./etc/nginx/conf.d, then create (static site or reverse proxy), edit, enable or disable and delete them. A disabled site is renamed name.conf.disabled, which nginx ignores. It also edits the main nginx.conf.Every change follows the same steps: nginx is tested first, the file is backed up, the change is made, nginx is tested again, and the change is rolled back automatically if the test fails. nginx is only reloaded if it was running. If the configuration was already broken before your change, nothing is changed or reloaded and you are told why. Start, restart and reload refuse to run while nginx -t fails.
Download the release file, cockpit-nginx-1.0.0-manual.tar.gz, then choose one:
System-wide (all Cockpit users, needs root)
sudo tar -C /usr/share/cockpit -xzf cockpit-nginx-1.0.0-manual.tar.gz
One user only (no root needed to install)
mkdir -p ~/.local/share/cockpit
tar -C ~/.local/share/cockpit -xzf cockpit-nginx-1.0.0-manual.tar.gz
If nginx isn't installed yet:
sudo dnf install nginx
Then log out of Cockpit and back in. Cockpit reads its module list at login, and "Nginx" appears in the left menu. If it doesn't, run this as the same user to see whether Cockpit found it:
cockpit-bridge --packages | grep -i nginx
Updating: there is no automatic update. Unpack the newer archive over the old one and log in again.
Removing
sudo rm -rf /usr/share/cockpit/nginx
sudo rm -rf /var/lib/cockpit-nginx
For a single-user install, remove ~/.local/share/cockpit/nginx instead. The second line is optional and deletes the saved config backups. Log out and back in afterwards. Site files in /etc/nginx/conf.d/ are ordinary nginx config and keep working until you delete them.
Files it uses on your server
| Path | Purpose |
|---|---|
/usr/share/cockpit/nginx/ (or ~/.local/share/cockpit/nginx/) |
The module itself |
/etc/nginx/conf.d/*.conf, /etc/nginx/nginx.conf |
The configuration it reads and edits |
/var/lib/cockpit-nginx/backups/ |
Timestamped backups before every change (root only; created on first change) |
SHA-256 85b23ea8b1aaad7a42b99aa14fd9c9999dabd73c30c2b75a01ce1ccd4c26d274
Initial release. Cockpit module for nginx: service control with config test, static sites and reverse proxies (create, edit, enable, disable, delete), nginx.conf editor, and error and journal logs, with backups and automatic rollback.
To check a download, compare the SHA-256 above with sha256sum <file> on Linux and macOS, or Get-FileHash <file> in PowerShell. If they differ, download it again.
Software is provided as it is, and any open-source components keep their own licences. Need help with it? Contact support.
SEYSOFT
Share folders with Windows, Mac and Linux computers from your browser inside Cockpit. Manage Samba shares and users without smb.conf.
SEYSOFT
Manage the Apache web server from your browser inside Cockpit: sites, reverse proxies, HTTPS, config editing with rollback, logs and SELinux.
SEYSOFT
Browser control panel for a HackRF One: live spectrum and waterfall, tune and listen, a channel scanner and an RF activity monitor, in Docker.