Add redirection for old url, and clean error page in case of wrong url.
Build and push chill website image / build (push) Successful in 1m16s
Build and push chill website image / build (push) Successful in 1m16s
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
:80 {
|
||||
root * /usr/share/caddy
|
||||
handle_errors {
|
||||
@old_root expression path_regexp('^/(fr|en|nl)(/?)$')
|
||||
redir @old_root / 301
|
||||
|
||||
@old_get_chill_configuration expression path_regexp('^(/(fr|en|nl))?/get-chill/configuration')
|
||||
redir @old_get_chill_configuration /resources/technical-documentation/ 301
|
||||
|
||||
@old_get_chill_install expression path_regexp('^(/(fr|en|nl))?/get-chill/install')
|
||||
redir @old_get_chill_install /resources/installation/ 301
|
||||
|
||||
@old_get_chill expression path_regexp('^(/(fr|en|nl))?/get-chill/')
|
||||
redir @old_get_chill /pricing/ 301
|
||||
|
||||
|
||||
@old_presentation_accomp expression path_regexp('^(/(fr|en|nl))?/presentation/accompanying-courses')
|
||||
redir @old_presentation_accomp /features/suivi-accompagnements/ 301
|
||||
|
||||
@old_presentation_persons expression path_regexp('^(/(fr|en|nl))?/presentation/persons')
|
||||
redir @old_presentation_persons /features/suivi-usagers/ 301
|
||||
|
||||
|
||||
@old_presentation_stats expression path_regexp('^(/(fr|en|nl))?/presentation/export-stats')
|
||||
redir @old_presentation_stats /features/rapports-statistiques/ 301
|
||||
|
||||
|
||||
@old_presentation_doc_gen expression path_regexp('^(/(fr|en|nl))?/presentation/doc-generation')
|
||||
redir @old_presentation_doc_gen /features/generation-documents/ 301
|
||||
|
||||
@old_presentation expression path_regexp('^(/(fr|en|nl))?/presentation/')
|
||||
redir @old_presentation /features/ 301
|
||||
|
||||
@old_start_user expression path_regexp('^^(/(fr|en|nl))?/start/user')
|
||||
redir @old_start_user /resources/manuals/ 301
|
||||
|
||||
@old_start expression path_regexp('^^(/(fr|en|nl))?/start/')
|
||||
redir @old_start / 301
|
||||
|
||||
header Content-Type text/html
|
||||
rewrite * /error/index.html
|
||||
file_server
|
||||
}
|
||||
file_server
|
||||
}
|
||||
@@ -8,3 +8,4 @@ RUN hugo build --minify --cleanDestinationDir
|
||||
FROM caddy:2-alpine
|
||||
|
||||
COPY --from=build /project/public/ /usr/share/caddy/
|
||||
COPY Caddyfile /etc/caddy/Caddyfile
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
title: "Page introuvable"
|
||||
layout: "simple"
|
||||
---
|
||||
|
||||
La page recherchée est introuvable, elle a probablement été déplacée. Utilisez le menu pour la retrouver.
|
||||
|
||||
|
||||
The page you're looking for cannot be found; it has probably been moved. Use the menu to find it.
|
||||
|
||||
|
||||
De gezochte pagina kan niet worden gevonden; deze is waarschijnlijk verplaatst. Gebruik het menu om de pagina terug te vinden.
|
||||
@@ -1,4 +1,5 @@
|
||||
---
|
||||
title: "Blog"
|
||||
layout: "list"
|
||||
draft: true
|
||||
---
|
||||
@@ -6,6 +6,7 @@ description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do ei
|
||||
categories: ["Lorem"]
|
||||
tags: ["ipsum", "dolor"]
|
||||
featured_image: "/images/blog/3-motifannulation.png"
|
||||
draft: true
|
||||
---
|
||||
|
||||
Exemple pour insérer une image
|
||||
|
||||
@@ -6,4 +6,5 @@ description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do ei
|
||||
categories: ["Lorem"]
|
||||
tags: ["ipsum", "dolor"]
|
||||
featured_image: ""
|
||||
draft: true
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user