Update content

This commit is contained in:
Simon 2020-07-20 20:01:54 +02:00
parent 5fbdb05928
commit 528b626455
6 changed files with 19 additions and 17 deletions

View File

@ -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

View File

@ -14,6 +14,13 @@ Pour construire le site :
hugo -D 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 ## Exemple de site
Voici quelques sites pour s'inspirer : Voici quelques sites pour s'inspirer :

View File

@ -7,6 +7,7 @@ $gutterXS: 10px
background-color: white background-color: white
box-shadow: 0 1px 3px rgba(0,0,0,.1) box-shadow: 0 1px 3px rgba(0,0,0,.1)
border-bottom: 1px solid #ebebeb border-bottom: 1px solid #ebebeb
width: 100%
.card-image .card-image
overflow: hidden overflow: hidden
@ -24,6 +25,7 @@ $gutterXS: 10px
align-self: center align-self: center
background-color: white background-color: white
padding: $gutter padding: $gutter
width: 100%
h3 h3
padding: 0 padding: 0

View File

@ -1,6 +1,6 @@
--- ---
title: Encore un peu de patience, il arrive ! title: Encore un peu de patience, il arrive !
date: 2020-04-20 date: 2020-05-21
image: img_le livre arrive.jpg image: img_le livre arrive.jpg
image_title: Anne-So court avec le livre image_title: Anne-So court avec le livre
draft: false draft: false

View File

@ -1,6 +1,6 @@
--- ---
title: L'impression est lancée ! title: L'impression est lancée !
date: 2020-04-20 date: 2020-06-23
image: img_impression.jpg image: img_impression.jpg
image_title: extraits du livre image_title: extraits du livre
draft: false draft: false

View File

@ -21,6 +21,9 @@ services:
WEBDAV_URL: ${WEBDAV_URL} WEBDAV_URL: ${WEBDAV_URL}
labels: labels:
com.centurylinklabs.watchtower.enable: true com.centurylinklabs.watchtower.enable: true
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
histoiredunpied-logs: histoiredunpied-logs:
container_name: histoiredunpied-logs container_name: histoiredunpied-logs
@ -31,6 +34,8 @@ services:
volumes: volumes:
- histoiredunpied-log-volume:/var/log/nginx - histoiredunpied-log-volume:/var/log/nginx
- histoiredunpied-stats:/usr/share/nginx/html/stats - histoiredunpied-stats:/usr/share/nginx/html/stats
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
labels: labels:
com.centurylinklabs.watchtower.enable: true com.centurylinklabs.watchtower.enable: true
@ -43,18 +48,13 @@ services:
volumes: volumes:
- histoiredunpied-log-volume:/var/log/nginx - histoiredunpied-log-volume:/var/log/nginx
- histoiredunpied-stats:/usr/share/nginx/html/stats - histoiredunpied-stats:/usr/share/nginx/html/stats
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
labels: labels:
traefik.enable: "true" traefik.enable: "true"
traefik.http.routers.histoiredunpied.rule: "Host(`${URL}`)" traefik.http.routers.histoiredunpied.rule: "Host(`${URL}`)"
traefik.http.routers.histoiredunpied.entrypoints: "websecure" traefik.http.routers.histoiredunpied.entrypoints: "web"
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"
com.centurylinklabs.watchtower.enable: true com.centurylinklabs.watchtower.enable: true
networks: networks: