planet.plone.org/svx: WIP: Caddyfile
sven <jenkins-z4DKO/[email protected]> Sun, 30 Jul 2017 06:38:53 -0700 (PDT)
| Newsgroups | gmane.comp.web.zope.plone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Repository: planet.plone.org Branch: refs/heads/svx Date: 2017-07-30T15:38:36+02:00 Author: sven (svx) <[email protected]> Commit: https://github.com/plone/planet.plone.org/commit/c4678cb361d3bc7578ac3ff06e31eaca9085d8cf WIP: Caddyfile Files changed: A Caddyfile M Dockerfile diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..0d16128 --- /dev/null +++ b/Caddyfile @@ -0,0 +1,12 @@ +planet.plone.org:443 { + 0.0.0.0 + log stdout + errors stdout + gzip +} + +header / { + Cache-Control "max-age=86400" +} + +root /srv/public_html diff --git a/Dockerfile b/Dockerfile index 264bc67..3f05654 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,7 @@ RUN builddeps=' \ && apk del --purge $builddeps \ && rm -rf $PIP_CACHE +COPY Caddyfile /etc/Caddyfile WORKDIR /srv/venus COPY planet planet RUN chown -R planet:planet planet @@ -33,4 +34,4 @@ RUN git clone https://github.com/rubys/venus.git source # Check cache of dockerfile # Add cron to run planet script every 10 minutes # Check entrypoint - +# Add Caddyfile ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot