18
submitted 4 days ago* (last edited 4 days ago) by enemenemu@lemm.ee to c/linux@programming.dev

how can you run caddy with a Caddyfile with systemd with enabled selinux on fedora?

I can manually start caddy with caddy start or /usr/bin/caddy run --environ --config /etc/caddy/Caddyfile which is also in /usr/lib/systemd/system/caddy.service.

Caddy works just fine but I can't start it with systemd without disabling selinux with sudo setenforce 0.

edit:

I found a tutorial on how to start caddy on centos that disables selinux, starts caddy with systemctl and then enabales selinux again. That does not sound right to me.

you are viewing a single comment's thread
view the rest of the comments
[-] BestBouclettes@jlai.lu 1 points 4 days ago
this post was submitted on 18 May 2025
18 points (100.0% liked)

Linux

7387 readers
103 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS