summaryrefslogtreecommitdiffstats
path: root/docs/docker
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@users.noreply.github.com>2017-11-26 16:44:32 -0500
committerLauris BH <lauris@nix.lv>2017-11-26 23:44:32 +0200
commitfb5c6b644460f94acb8976ad35165230b9d47fb2 (patch)
tree3811cb3807a9f666e77743cc0fc8bcea4276f421 /docs/docker
parentf148a4a1ed55c75d391930865185fb7bfbee03ba (diff)
downloadgitea-fb5c6b644460f94acb8976ad35165230b9d47fb2.tar.gz
gitea-fb5c6b644460f94acb8976ad35165230b9d47fb2.zip
Import docs into main repository (#2874)
* import docs into main repository Signed-off-by: Matti Ranta <matti@mdranta.net>
Diffstat (limited to 'docs/docker')
-rw-r--r--docs/docker/caddy.conf39
1 files changed, 39 insertions, 0 deletions
diff --git a/docs/docker/caddy.conf b/docs/docker/caddy.conf
new file mode 100644
index 0000000000..d1b66ce850
--- /dev/null
+++ b/docs/docker/caddy.conf
@@ -0,0 +1,39 @@
+:80 {
+ root /srv/www
+
+ locale en-US zh-CN zh-TW pt-BR nl-NL {
+ detect header
+ }
+
+ redir 301 {
+ if {path} match ^/$
+ / /{>Detected-Locale}/
+ }
+
+ rewrite /en-US/ {
+ regexp (.*)
+ to /en-us/{1}
+ }
+
+ rewrite /zh-CN/ {
+ regexp (.*)
+ to /zh-cn/{1}
+ }
+
+ rewrite /zh-TW/ {
+ regexp (.*)
+ to /zh-tw/{1}
+ }
+
+ rewrite /pt-BR/ {
+ regexp (.*)
+ to /pt-br/{1}
+ }
+
+ rewrite /nl-NL/ {
+ regexp (.*)
+ to /nl-nl/{1}
+ }
+
+ header / Vary "Accept-Language"
+}