@@ -36,53 +36,53 @@ if [[ ! "${FRANKENPHP_VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
3636 exit 1
3737fi
3838
39- cat << EOF > dist/frankenphp.service
40- [Unit]
41- Description=FrankenPHP server
42- After=network.target
43-
44- [Service]
45- Type=notify
46- User=caddy
47- Group=caddy
48- ExecStartPre=/usr/bin/frankenphp validate --config /etc/frankenphp/Caddyfile
49- ExecStart=/usr/bin/frankenphp run --environ --config /etc/frankenphp/Caddyfile
50- ExecReload=/usr/bin/frankenphp reload --config /etc/frankenphp/Caddyfile
51- TimeoutStopSec=5s
52- LimitNOFILE=1048576
53- LimitNPROC=512
54- PrivateTmp=true
55- ProtectHome=true
56- ProtectSystem=full
57- AmbientCapabilities=CAP_NET_BIND_SERVICE
58-
59- [Install]
60- WantedBy=multi-user.target
39+ cat << EOF >dist/frankenphp.service
40+ [Unit]
41+ Description=FrankenPHP server
42+ After=network.target
43+
44+ [Service]
45+ Type=notify
46+ User=caddy
47+ Group=caddy
48+ ExecStartPre=/usr/bin/frankenphp validate --config /etc/frankenphp/Caddyfile
49+ ExecStart=/usr/bin/frankenphp run --environ --config /etc/frankenphp/Caddyfile
50+ ExecReload=/usr/bin/frankenphp reload --config /etc/frankenphp/Caddyfile
51+ TimeoutStopSec=5s
52+ LimitNOFILE=1048576
53+ LimitNPROC=512
54+ PrivateTmp=true
55+ ProtectHome=true
56+ ProtectSystem=full
57+ AmbientCapabilities=CAP_NET_BIND_SERVICE
58+
59+ [Install]
60+ WantedBy=multi-user.target
6161EOF
6262
6363cat << EOF > dist/Caddyfile
64- # The Caddyfile is an easy way to configure your Caddy web server.
65- #
66- # https://caddyserver.com/docs/caddyfile
67- # https://frankenphp.dev/docs/config
68- {
69- # enable the frankenphp module, otherwise "php_server" and "php" directives do not work
70- frankenphp {
71- # optionally set max_threads, num_threads and create workers here
72- }
73- }
74-
75- http:// {
76- root * /usr/share/caddy
77- php_server
78- file_server
79- }
80-
81- # As an alternative to editing the above site block, you can add your own site
82- # block files in the Caddyfile.d directory, and they will be included as long
83- # as they use the .caddyfile extension.
84-
85- import Caddyfile.d/*.caddyfile
64+ # The Caddyfile is an easy way to configure your Caddy web server.
65+ #
66+ # https://caddyserver.com/docs/caddyfile
67+ # https://frankenphp.dev/docs/config
68+ {
69+ # enable the frankenphp module, otherwise "php_server" and "php" directives do not work
70+ frankenphp {
71+ # optionally set max_threads, num_threads and create workers here
72+ }
73+ }
74+
75+ http:// {
76+ root * /usr/share/caddy
77+ php_server
78+ file_server
79+ }
80+
81+ # As an alternative to editing the above site block, you can add your own site
82+ # block files in the Caddyfile.d directory, and they will be included as long
83+ # as they use the .caddyfile extension.
84+
85+ import Caddyfile.d/*.caddyfile
8686EOF
8787
8888iteration=" 1"
0 commit comments