diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..f205c0b --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +# Ignore everything +** + +!public diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..0bf5d83 --- /dev/null +++ b/.editorconfig @@ -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 \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5286546 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +public +resources diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fe82c9c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM registry.weko.io/nginx-lowtech:0.0.8 + +# Copie des sources du site +COPY public /usr/share/nginx/html diff --git a/config/_default/config.yml b/config/_default/config.yml new file mode 100644 index 0000000..77b2faf --- /dev/null +++ b/config/_default/config.yml @@ -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 diff --git a/config/development/config.yml b/config/development/config.yml new file mode 100644 index 0000000..a0a27dc --- /dev/null +++ b/config/development/config.yml @@ -0,0 +1 @@ +baseURL: http://localhost:1313/ diff --git a/config/production/config.yml b/config/production/config.yml new file mode 100644 index 0000000..302b1b1 --- /dev/null +++ b/config/production/config.yml @@ -0,0 +1,2 @@ +baseURL: https://anneso7.com/ +enableRobotsTXT: true diff --git a/config/staging/config.yml b/config/staging/config.yml new file mode 100644 index 0000000..58dd675 --- /dev/null +++ b/config/staging/config.yml @@ -0,0 +1,2 @@ +baseURL: https://staging.anneso7.com/ +enableRobotsTXT: true diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml new file mode 100644 index 0000000..679e12d --- /dev/null +++ b/docker-compose.prod.yml @@ -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 diff --git a/docker-compose.staging.yml b/docker-compose.staging.yml new file mode 100644 index 0000000..1dc19db --- /dev/null +++ b/docker-compose.staging.yml @@ -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