Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
d4b10b69
Commit
d4b10b69
authored
Jul 05, 2016
by
Matt Holt
Committed by
GitHub
Jul 05, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #920 from ianwalter/master
Changing refs from /usr/bin to /usr/local/bin
parents
f77264b7
ad2ed5b0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
dist/init/linux-systemd/README.md
dist/init/linux-systemd/README.md
+1
-1
dist/init/linux-systemd/caddy.service
dist/init/linux-systemd/caddy.service
+1
-1
dist/init/linux-upstart/README.md
dist/init/linux-upstart/README.md
+1
-1
dist/init/linux-upstart/caddy.conf
dist/init/linux-upstart/caddy.conf
+1
-1
No files found.
dist/init/linux-systemd/README.md
View file @
d4b10b69
...
@@ -49,7 +49,7 @@ chmod 0770 /etc/ssl/caddy
...
@@ -49,7 +49,7 @@ chmod 0770 /etc/ssl/caddy
[Service]
[Service]
; an empty value clears the original (and preceding) settings
; an empty value clears the original (and preceding) settings
ExecStart
=
ExecStart
=
ExecStart
=
/usr/bin/caddy -conf="/etc/caddy/myCaddy.conf"
ExecStart
=
/usr/
local/
bin/caddy -conf="/etc/caddy/myCaddy.conf"
```
```
-
To view the resulting configuration use
`systemctl cat caddy`
-
To view the resulting configuration use
`systemctl cat caddy`
...
...
dist/init/linux-systemd/caddy.service
View file @
d4b10b69
...
@@ -15,7 +15,7 @@ Group=www-data
...
@@ -15,7 +15,7 @@ Group=www-data
Environment=HOME=/etc/ssl/caddy
Environment=HOME=/etc/ssl/caddy
; Always set "-root" to something safe in case it gets forgotten in the Caddyfile.
; Always set "-root" to something safe in case it gets forgotten in the Caddyfile.
ExecStart=/usr/bin/caddy -log stdout -agree=true -conf=/etc/caddy/Caddyfile -root=/var/tmp
ExecStart=/usr/
local/
bin/caddy -log stdout -agree=true -conf=/etc/caddy/Caddyfile -root=/var/tmp
ExecReload=/bin/kill -USR1 $MAINPID
ExecReload=/bin/kill -USR1 $MAINPID
; Limit the number of file descriptors; see `man systemd.exec` for more limit settings.
; Limit the number of file descriptors; see `man systemd.exec` for more limit settings.
...
...
dist/init/linux-upstart/README.md
View file @
d4b10b69
...
@@ -7,7 +7,7 @@ Usage
...
@@ -7,7 +7,7 @@ Usage
Usage in this blogpost:
[
Running Caddy Server as a service with Upstart
](
https://denbeke.be/blog/servers/running-caddy-server-as-a-service/
)
.
Usage in this blogpost:
[
Running Caddy Server as a service with Upstart
](
https://denbeke.be/blog/servers/running-caddy-server-as-a-service/
)
.
Short recap:
Short recap:
*
Download Caddy in
`/usr/
bin/caddy`
and execute
`sudo setcap cap_net_bind_service=+ep /usr
/bin/caddy`
.
*
Download Caddy in
`/usr/
local/bin/caddy`
and execute
`sudo setcap cap_net_bind_service=+ep /usr/local
/bin/caddy`
.
*
Save the upstart config file in
`/etc/init/caddy.conf`
.
*
Save the upstart config file in
`/etc/init/caddy.conf`
.
*
Ensure that the folder
`/etc/caddy`
exists and that the subfolder .caddy is owned by
`www-data`
.
*
Ensure that the folder
`/etc/caddy`
exists and that the subfolder .caddy is owned by
`www-data`
.
*
Create a Caddyfile in
`/etc/caddy/Caddyfile`
.
*
Create a Caddyfile in
`/etc/caddy/Caddyfile`
.
...
...
dist/init/linux-upstart/caddy.conf
View file @
d4b10b69
...
@@ -19,5 +19,5 @@ limit nofile 1048576 1048576
...
@@ -19,5 +19,5 @@ limit nofile 1048576 1048576
script
script
cd
/
etc
/
caddy
cd
/
etc
/
caddy
rootdir
=
"$(mktemp -d -t "
caddy
-
run
.
XXXXXX
")"
rootdir
=
"$(mktemp -d -t "
caddy
-
run
.
XXXXXX
")"
exec
/
usr
/
bin
/
caddy
-
agree
-
log
=
stdout
-
conf
=/
etc
/
caddy
/
Caddyfile
-
root
=$
rootdir
exec
/
usr
/
local
/
bin
/
caddy
-
agree
-
log
=
stdout
-
conf
=/
etc
/
caddy
/
Caddyfile
-
root
=$
rootdir
end
script
end
script
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment