feat: Ajout de la configuration de base

This commit is contained in:
Simon 2021-03-11 15:53:18 +01:00
parent 44b24a816d
commit 1a06e5ced5
10 changed files with 97 additions and 0 deletions

4
.dockerignore Normal file
View File

@ -0,0 +1,4 @@
# Ignore everything
**
!public

10
.editorconfig Normal file
View File

@ -0,0 +1,10 @@
root = true
[*]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
public
resources

4
Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM registry.weko.io/nginx-lowtech:0.0.8
# Copie des sources du site
COPY public /usr/share/nginx/html

View File

@ -0,0 +1,16 @@
languageCode: fr-fr
defaultContentLanguage: fr
title: AnneSo7, pour un design responsable
theme:
- hugo-theme-lowtech
params:
debug: false
description: A modifier
markup:
goldmark:
renderer:
unsafe: true

View File

@ -0,0 +1 @@
baseURL: http://localhost:1313/

View File

@ -0,0 +1,2 @@
baseURL: https://anneso7.com/
enableRobotsTXT: true

View File

@ -0,0 +1,2 @@
baseURL: https://staging.anneso7.com/
enableRobotsTXT: true

37
docker-compose.prod.yml Normal file
View File

@ -0,0 +1,37 @@
version: "3.8"
volumes:
anneso-log:
name: anneso-log
anneso-stats:
name: anneso-stats
services:
anneso-prod:
container_name: anneso-prod
build: .
restart: always
labels:
traefik.enable: "true"
traefik.http.routers.anneso.rule: "Host(`${URL}`)"
traefik.http.routers.anneso.entrypoints: "web"
volumes:
- anneso-log:/var/log/nginx
- anneso-stats:/usr/share/nginx/html/stats
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
anneso-stats:
container_name: anneso-stats
image: registry.anneso.io/goaccess:1.0.0
restart: always
volumes:
- anneso-log:/var/log/nginx
- anneso-stats:/usr/share/nginx/html/stats
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
default:
external:
name: traefik

View File

@ -0,0 +1,19 @@
version: "3.8"
networks:
default:
external:
name: traefik
services:
anneso-staging:
container_name: anneso-staging
build: .
restart: always
labels:
traefik.enable: "true"
traefik.http.routers.anneso-staging.rule: "Host(`staging.${URL}`)"
traefik.http.routers.anneso-staging.entrypoints: "web"
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro