mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-28 14:43:48 +03:00
init: Fix configuration permissions in systemd integration. (#2130)
This fixes the permissions on /etc/caddy to match standard linux permissions for /etc, and makes the Caddyfile read-only for the caddy user.
This commit is contained in:
parent
6965075825
commit
e263566673
1 changed files with 3 additions and 3 deletions
6
dist/init/linux-systemd/README.md
vendored
6
dist/init/linux-systemd/README.md
vendored
|
@ -44,7 +44,7 @@ sudo useradd \
|
|||
--system --uid 33 www-data
|
||||
|
||||
sudo mkdir /etc/caddy
|
||||
sudo chown -R root:www-data /etc/caddy
|
||||
sudo chown -R root:root /etc/caddy
|
||||
sudo mkdir /etc/ssl/caddy
|
||||
sudo chown -R root:www-data /etc/ssl/caddy
|
||||
sudo chmod 0770 /etc/ssl/caddy
|
||||
|
@ -55,8 +55,8 @@ and give it appropriate ownership and permissions:
|
|||
|
||||
```bash
|
||||
sudo cp /path/to/Caddyfile /etc/caddy/
|
||||
sudo chown www-data:www-data /etc/caddy/Caddyfile
|
||||
sudo chmod 444 /etc/caddy/Caddyfile
|
||||
sudo chown root:root /etc/caddy/Caddyfile
|
||||
sudo chmod 644 /etc/caddy/Caddyfile
|
||||
```
|
||||
|
||||
Create the home directory for the server and give it appropriate ownership
|
||||
|
|
Loading…
Reference in a new issue