From 528b626455186c7f3c2f6347acb75045eea9b002 Mon Sep 17 00:00:00 2001 From: Simon C Date: Mon, 20 Jul 2020 20:01:54 +0200 Subject: [PATCH] Update content --- .env.example | 7 ------- README.md | 7 +++++++ assets/css/card.sass | 2 ++ .../index.md | 2 +- .../2020-06-23 - Impression en cours/index.md | 2 +- docker-compose.yml | 16 ++++++++-------- 6 files changed, 19 insertions(+), 17 deletions(-) delete mode 100644 .env.example diff --git a/.env.example b/.env.example deleted file mode 100644 index 396b362..0000000 --- a/.env.example +++ /dev/null @@ -1,7 +0,0 @@ -TIMEZONE=Europe/Paris -NAME=histoiredunpied -URL=histoiredunpied.com -IMAGE=registry.weko.io/nginx-lowtech:0.0.3 -HUGO_VERSION=0.67.1 - -LOG_PATH=/var/log/nginx/access.log diff --git a/README.md b/README.md index 80a233b..4df0ec4 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,13 @@ Pour construire le site : hugo -D ``` +## Logs + +``` +ssh obelix +docker run -**t --rm -v /home/pi/backups/histoiredunpied:/backup -v histoiredunpied-log-volume:/logs alpine:3.11.5 ash +``` + ## Exemple de site Voici quelques sites pour s'inspirer : diff --git a/assets/css/card.sass b/assets/css/card.sass index 13acac6..9445e20 100644 --- a/assets/css/card.sass +++ b/assets/css/card.sass @@ -7,6 +7,7 @@ $gutterXS: 10px background-color: white box-shadow: 0 1px 3px rgba(0,0,0,.1) border-bottom: 1px solid #ebebeb + width: 100% .card-image overflow: hidden @@ -24,6 +25,7 @@ $gutterXS: 10px align-self: center background-color: white padding: $gutter + width: 100% h3 padding: 0 diff --git a/content/actu/2020-05-21 - Encore un peu de patience il arrive/index.md b/content/actu/2020-05-21 - Encore un peu de patience il arrive/index.md index a486135..6a0b7eb 100644 --- a/content/actu/2020-05-21 - Encore un peu de patience il arrive/index.md +++ b/content/actu/2020-05-21 - Encore un peu de patience il arrive/index.md @@ -1,6 +1,6 @@ --- title: Encore un peu de patience, il arrive ! -date: 2020-04-20 +date: 2020-05-21 image: img_le livre arrive.jpg image_title: Anne-So court avec le livre draft: false diff --git a/content/actu/2020-06-23 - Impression en cours/index.md b/content/actu/2020-06-23 - Impression en cours/index.md index 9e4df4c..6964daf 100644 --- a/content/actu/2020-06-23 - Impression en cours/index.md +++ b/content/actu/2020-06-23 - Impression en cours/index.md @@ -1,6 +1,6 @@ --- title: L'impression est lancée ! -date: 2020-04-20 +date: 2020-06-23 image: img_impression.jpg image_title: extraits du livre draft: false diff --git a/docker-compose.yml b/docker-compose.yml index 086cdec..7633f47 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,6 +21,9 @@ services: WEBDAV_URL: ${WEBDAV_URL} labels: com.centurylinklabs.watchtower.enable: true + volumes: + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro histoiredunpied-logs: container_name: histoiredunpied-logs @@ -31,6 +34,8 @@ services: volumes: - histoiredunpied-log-volume:/var/log/nginx - histoiredunpied-stats:/usr/share/nginx/html/stats + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro labels: com.centurylinklabs.watchtower.enable: true @@ -43,18 +48,13 @@ services: volumes: - histoiredunpied-log-volume:/var/log/nginx - histoiredunpied-stats:/usr/share/nginx/html/stats + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro labels: traefik.enable: "true" traefik.http.routers.histoiredunpied.rule: "Host(`${URL}`)" - traefik.http.routers.histoiredunpied.entrypoints: "websecure" - traefik.http.routers.histoiredunpied.tls.certResolver: "letsencrypt" - - # Redirect https://www to https:// - traefik.http.routers.histoiredunpied-redirect-www.rule: "Host(`www.${URL}`)" - traefik.http.routers.histoiredunpied-redirect-www.entrypoints: "websecure" - traefik.http.routers.histoiredunpied-redirect-www.tls.certResolver: "letsencrypt" - traefik.http.routers.histoiredunpied-redirect-www.middlewares: "redirect-www@docker" + traefik.http.routers.histoiredunpied.entrypoints: "web" com.centurylinklabs.watchtower.enable: true networks: