lair-framework / lair-docker

Lair Framework dockerized.
37 stars 16 forks source link

Fix Caddy install #1

Closed hamstah closed 7 years ago

hamstah commented 8 years ago

Hi,

This PR fixes the installation of caddy.

The download link returns a 400 with an error message about the following features not being recognised:

$ curl -i "https://caddyserver.com/download/build?os=linux&arch=amd64&features=cors,git,hugo,ipfilter,jsonp,jwt,mailout,prometheus,realip,search,upload"
HTTP/1.1 400 Bad Request
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Location
Content-Length: 23
Content-Security-Policy: style-src 'self' 'unsafe-inline' https://fonts.googleapis.com/ https://maxcdn.bootstrapcdn.com; script-src https://www.google-analytics 'self' 'unsafe-inline' 'unsafe-eval' data: blob: https:; img-src 'self' data: https:; font-src 'self' https: data: blob:; media-src 'self' https: data: blob:; connect-src 'self' https:; object-src 'none';
Content-Type: text/plain; charset=utf-8
Date: Mon, 08 Aug 2016 05:16:07 GMT
Server: Caddy
Strict-Transport-Security: max-age=31536000
X-Content-Type-Options: nosniff
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block

unknown feature 'cors'
doxaPar commented 7 years ago

https://caddyserver.com/download/linux/amd64?plugins=http.cors,http.git,http.hugo,http.ipfilter,http.jwt,http.mailout,http.prometheus,http.realip,http.upload

ryhanson commented 7 years ago

Fixed with: https://github.com/ryhanson/lair-docker/commit/09f357b3ab4a8cc330b49180a6f81d6a25239e24