Adding Caddy configs

This commit is contained in:
Matt Burchett 2019-07-18 08:57:57 -05:00
parent b9bd9b1311
commit 355b268fc7
7 changed files with 63 additions and 0 deletions

8
.drone.yml Normal file
View File

@ -0,0 +1,8 @@
kind: pipeline
name: default
steps:
- name: Build Caddy Server
image: golang
commands:
- go build -o caddy main.go

1
.gitignore vendored
View File

@ -12,3 +12,4 @@
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
caddy

8
.idea/caddy-server.iml generated Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

6
.idea/misc.xml generated Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
</project>

8
.idea/modules.xml generated Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/caddy-server.iml" filepath="$PROJECT_DIR$/.idea/caddy-server.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml generated Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

26
main.go Normal file
View File

@ -0,0 +1,26 @@
package main
import (
"github.com/caddyserver/caddy/caddy/caddymain"
// plug in plugins here, for example:
// _ "import/path/here"
_ "github.com/caddyserver/dnsproviders/cloudflare"
_ "github.com/caddyserver/dnsproviders/digitalocean"
_ "github.com/caddyserver/dnsproviders/namecheap"
_ "github.com/nicolasazrak/caddy-cache"
_ "github.com/jung-kurt/caddy-cgi"
_ "github.com/captncraig/cors"
_ "github.com/epicagency/caddy-expires"
_ "github.com/aablinov/caddy-geoip"
_ "github.com/abiosoft/caddy-git"
_ "github.com/hacdias/caddy-minify"
_ "github.com/captncraig/caddy-realip"
_ "github.com/hacdias/caddy-webdav"
)
func main() {
// optional: disable telemetry
// caddymain.EnableTelemetry = false
caddymain.Run()
}