Adding Caddy configs
This commit is contained in:
		
							
								
								
									
										8
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								.drone.yml
									
									
									
									
									
										Normal 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
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -12,3 +12,4 @@ | |||||||
| # Output of the go coverage tool, specifically when used with LiteIDE | # Output of the go coverage tool, specifically when used with LiteIDE | ||||||
| *.out | *.out | ||||||
|  |  | ||||||
|  | caddy | ||||||
							
								
								
									
										8
									
								
								.idea/caddy-server.iml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								.idea/caddy-server.iml
									
									
									
										generated
									
									
									
										Normal 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
									
								
							
							
						
						
									
										6
									
								
								.idea/misc.xml
									
									
									
										generated
									
									
									
										Normal 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
									
								
							
							
						
						
									
										8
									
								
								.idea/modules.xml
									
									
									
										generated
									
									
									
										Normal 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
									
								
							
							
						
						
									
										6
									
								
								.idea/vcs.xml
									
									
									
										generated
									
									
									
										Normal 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
									
								
							
							
						
						
									
										26
									
								
								main.go
									
									
									
									
									
										Normal 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() | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user