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
8a2f2f8d
Commit
8a2f2f8d
authored
Mar 31, 2016
by
Matt Holt
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #705 from DenBeke/upstart-conf
dist/init: caddy.conf for upstart
parents
b3a5b725
86854dca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
dist/init/linux-upstart/README.md
dist/init/linux-upstart/README.md
+13
-0
dist/init/linux-upstart/caddy.conf
dist/init/linux-upstart/caddy.conf
+18
-0
No files found.
dist/init/linux-upstart/README.md
0 → 100644
View file @
8a2f2f8d
Upstart conf for Caddy
=====================
Usage
-----
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:
*
Download Caddy in
`/usr/bin/caddy`
and execute
`sudo setcap cap_net_bind_service=+ep /usr/bin/caddy`
.
*
Save the upstart config file in
`/etc/init/caddy.conf`
.
*
Create a Caddyfile in
`/etc/caddy/Caddyfile`
.
*
Now you can use
`sudo service caddy start|stop|restart`
.
\ No newline at end of file
dist/init/linux-upstart/caddy.conf
0 → 100644
View file @
8a2f2f8d
description
"Caddy startup script"
author
"Mathias Beke"
start
on
runlevel
[
2345
]
stop
on
runlevel
[
016
]
setuid
www
-
data
setgid
www
-
data
respawn
respawn
limit
10
5
limit
nofile
4096
4096
script
exec
/
usr
/
bin
/
caddy
-
agree
=
true
-
conf
=/
etc
/
caddy
/
Caddyfile
end
script
\ No newline at end of file
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