docs: SELinux COPR info

This commit is contained in:
elmø 2023-08-13 21:29:00 +02:00
parent afb4b2ccef
commit 5073ad8340

View file

@ -7,13 +7,16 @@ title: Keep Caddy Running
While Caddy can be run directly with its [command line interface](/docs/command-line), there are numerous advantages to using a service manager to keep it running, such as ensuring it starts automatically when the system reboots and to capture stdout/stderr logs.
- [Keep Caddy Running](#keep-caddy-running)
- [Linux Service](#linux-service)
- [Unit Files](#unit-files)
- [Manual Installation](#manual-installation)
- [Using the Service](#using-the-service)
- [Overrides](#overrides)
- [SELinux System Considerations](#selinux-system-considerations)
- [Windows Service](#windows-service)
- [Windows service](#windows-service)
- [sc.exe](#scexe)
- [WinSW](#winsw)
- [Docker Compose](#docker-compose)
- [Setup](#setup)
- [Usage](#usage)
@ -155,7 +158,12 @@ Then, save the file and exit the text editor, and restart the service for it to
### SELinux System Considerations
On SELinux enabled systems, systemd unit files and their executables will not be run unless labelled with `systemd_unit_file_t` and `bin_t` respectively.
On SELinux enabled systems you have two options:
1. Compile Caddy and label the files yourself
2. Install Caddy using the [COPR repo](https://copr.fedorainfracloud.org/coprs/g/caddy/caddy/), your systemd file and caddy binary will be created and labelled correctly. NB: if you want to recompile Caddy with modules, you will have to label the executable as described bellow.
Systemd unit files and their executables will not be run unless labelled with `systemd_unit_file_t` and `bin_t` respectively.
The `systemd_unit_file_t` is automatically applied to files created in `/etc/systemd/...`, so be sure to create your `caddy.service` file there.