1
0
Fork 0
mirror of https://github.com/Rouji/blog.git synced 2026-06-14 08:46:12 +00:00
No description
Find a file
2026-05-17 14:29:02 +02:00
content/posts word 2026-05-17 14:29:02 +02:00
layouts better egg 2026-05-17 13:48:07 +02:00
themes update papermod 2026-04-19 00:29:04 +02:00
.gitmodules init 2023-07-26 14:22:51 +09:00
config.yaml add email 2026-05-10 20:29:08 +02: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;
}