1
0
Fork 0
mirror of https://github.com/Rouji/blog.git synced 2026-03-22 07:21:47 +00:00
No description
Find a file
2026-03-06 12:42:38 +01:00
content/posts glaze 2025-10-31 22:34:45 +01:00
layouts sacher: fix the columns thing 2025-10-10 23:25:45 +02:00
themes update papermod 2025-04-20 17:57:21 +02:00
.gitmodules init 2023-07-26 14:22:51 +09:00
config.yaml serve english in /en/ instead of / 2026-03-06 12:21:01 +01:00
Makefile add makefile 2026-03-06 12:23:49 +01:00
README.md add readme 2026-03-06 12:42:38 +01:00

nginx

route root to a language based on accept-language:

map $http_accept_language $lang {
    default en;
    ~*^en en;
    ~*^ja ja;
    ~*^de de;
}

[...] 

location ~ /.+ {
    try_files $uri $uri/ =404;
}

location / {
    return 302 /$lang$request_uri;
}